Skip to main content

DecodedFeat

Enum DecodedFeat 

Source
pub enum DecodedFeat {
Show 104 variants ArmourProfLight { feat_id: u16, }, ArmourProfMedium { feat_id: u16, }, ArmourProfHeavy { feat_id: u16, }, WeaponProfBlaster { feat_id: u16, }, WeaponProfBlasterRifle { feat_id: u16, }, WeaponProfHeavyWeapons { feat_id: u16, }, WeaponProfMeleeWeapons { feat_id: u16, }, WeaponProfLightsaber { feat_id: u16, }, WeaponProfGrenade { feat_id: u16, }, WeaponProfSimpleWeapons { feat_id: u16, }, ProficiencyAll { feat_id: u16, }, WeaponFocusBlaster { feat_id: u16, }, WeaponFocusBlasterRifle { feat_id: u16, }, WeaponFocusGrenade { feat_id: u16, }, WeaponFocusHeavyWeapons { feat_id: u16, }, WeaponFocusLightsaber { feat_id: u16, }, WeaponFocusMeleeWeapons { feat_id: u16, }, WeaponFocusSimpleWeapons { feat_id: u16, }, WeaponSpecBlaster { feat_id: u16, }, WeaponSpecBlasterRifle { feat_id: u16, }, WeaponSpecGrenade { feat_id: u16, }, WeaponSpecHeavyWeapons { feat_id: u16, }, WeaponSpecLightsaber { feat_id: u16, }, WeaponSpecMeleeWeapons { feat_id: u16, }, WeaponSpecSimpleWeapons { feat_id: u16, }, PowerAttack { feat_id: u16, }, ImprovedPowerAttack { feat_id: u16, }, MasterPowerAttack { feat_id: u16, }, PowerBlast { feat_id: u16, }, ImprovedPowerBlast { feat_id: u16, }, MasterPowerBlast { feat_id: u16, }, CriticalStrike { feat_id: u16, }, ImprovedCriticalStrike { feat_id: u16, }, MasterCriticalStrike { feat_id: u16, }, Flurry { feat_id: u16, }, ImprovedFlurry { feat_id: u16, }, SniperShot { feat_id: u16, }, ImprovedSniperShot { feat_id: u16, }, MasterSniperShot { feat_id: u16, }, RapidShot { feat_id: u16, }, ImprovedRapidShot { feat_id: u16, }, MultiShot { feat_id: u16, }, WhirlwindAttack { feat_id: u16, }, TwoWeaponFighting { feat_id: u16, }, TwoWeaponAdvanced { feat_id: u16, }, TwoWeaponMastery { feat_id: u16, }, JediDefense { feat_id: u16, }, AdvancedJediDefense { feat_id: u16, }, MasterJediDefense { feat_id: u16, }, ForceFocus { feat_id: u16, }, ForceFocusAdvanced { feat_id: u16, }, ForceFocusMastery { feat_id: u16, }, ForceFocusAlter { feat_id: u16, }, ForceFocusControl { feat_id: u16, }, ForceJump { feat_id: u16, }, ForceJumpAdvanced { feat_id: u16, }, ForceJumpMastery { feat_id: u16, }, ForceImmunityFear { feat_id: u16, }, ForceImmunityStun { feat_id: u16, }, ForceImmunityParalysis { feat_id: u16, }, BattleMeditation { feat_id: u16, }, ForceCamoflage { feat_id: u16, }, SneakAttack1D6 { feat_id: u16, }, SneakAttack2D6 { feat_id: u16, }, SneakAttack3D6 { feat_id: u16, }, SneakAttack4D6 { feat_id: u16, }, SneakAttack5D6 { feat_id: u16, }, SneakAttack6D6 { feat_id: u16, }, UncannyDodge1 { feat_id: u16, }, UncannyDodge2 { feat_id: u16, }, Toughness { feat_id: u16, }, ImprovedToughness { feat_id: u16, }, MasterToughness { feat_id: u16, }, Conditioning { feat_id: u16, }, ImprovedConditioning { feat_id: u16, }, MasterConditioning { feat_id: u16, }, ImplantLevel1 { feat_id: u16, }, ImplantLevel2 { feat_id: u16, }, ImplantLevel3 { feat_id: u16, }, DroidUpgrade1 { feat_id: u16, }, DroidUpgrade2 { feat_id: u16, }, DroidUpgrade3 { feat_id: u16, }, BlasterIntegration { feat_id: u16, }, LogicUpgradeCombat { feat_id: u16, }, LogicUpgradeTactician { feat_id: u16, }, Dueling { feat_id: u16, }, AdvancedDueling { feat_id: u16, }, MasterDueling { feat_id: u16, }, JediSense { feat_id: u16, }, KnightSense { feat_id: u16, }, MasterSense { feat_id: u16, }, GuardStance { feat_id: u16, }, AdvancedGuardStance { feat_id: u16, }, MasterGuardStance { feat_id: u16, }, SkillFocusAwareness { feat_id: u16, }, SkillFocusTreatInjury { feat_id: u16, }, SkillFocusStealth { feat_id: u16, }, Cautious { feat_id: u16, }, Perceptive { feat_id: u16, }, Empathy { feat_id: u16, }, GearHead { feat_id: u16, }, WookieEndurance { feat_id: u16, }, ScoundrelsLuck { feat_id: u16, }, Unknown { feat_id: u16, feat_label: Option<String>, },
}
Expand description

One decoded entry from a UTC’s FeatList, dispatched by matching the feat.2da row’s label cell against the set of vanilla feat labels the corpus references.

Vanilla FeatList entries carry a single Feat: u16 field, so every typed variant has the same shape: a raw feat_id preserved from the source GFF. Dispatch is by label, not by raw feat_id, so a mod that re-numbers a vanilla feat still routes to its typed variant.

Mod-added rows, vanilla feat rows the corpus never assigns, and missing or out-of-range entries all surface as DecodedFeat::Unknown carrying the raw id and the resolved label (when reachable).

Variants§

§

ArmourProfLight

feat.2da label ARMOUR_PROF_LIGHT. Vanilla row 5.

Fields

§feat_id: u16

Raw feat_id (the GFF integer the dispatch resolved from).

§

ArmourProfMedium

feat.2da label ARMOUR_PROF_MEDIUM. Vanilla row 6.

Fields

§feat_id: u16

Raw feat_id.

§

ArmourProfHeavy

feat.2da label ARMOUR_PROF_HEAVY. Vanilla row 4.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponProfBlaster

feat.2da label WEAPON_PROF_BLASTER. Vanilla row 39.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponProfBlasterRifle

feat.2da label WEAPON_PROF_BLASTER_RIFLE. Vanilla row 40.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponProfHeavyWeapons

feat.2da label WEAPON_PROF_HEAVY_WEAPONS. Vanilla row 42.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponProfMeleeWeapons

feat.2da label WEAPON_PROF_MELEE_WEAPONS. Vanilla row 44.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponProfLightsaber

feat.2da label WEAPON_PROF_LIGHTSABER. Vanilla row 43.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponProfGrenade

feat.2da label XXXX_WEAPON_PROF_GRENADE (the XXXX_ prefix marks the feat as deprecated by Bioware; vanilla UTCs still load it). Vanilla row 41.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponProfSimpleWeapons

feat.2da label XXXX_WEAPON_PROF_SIMPLE_WEAPONS. Vanilla row 45.

Fields

§feat_id: u16

Raw feat_id.

§

ProficiencyAll

feat.2da label PROFICIENCY_ALL. Vanilla row 93. The catch-all proficiency granted to special and cutscene creatures.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponFocusBlaster

feat.2da label WEAPON_FOCUS_BLASTER. Vanilla row 32.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponFocusBlasterRifle

feat.2da label WEAPON_FOCUS_BLASTER_RIFLE. Vanilla row 33.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponFocusGrenade

feat.2da label XXXX_WEAPON_FOCUS_GRENADE. Vanilla row 34.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponFocusHeavyWeapons

feat.2da label WEAPON_FOCUS_HEAVY_WEAPONS. Vanilla row 35.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponFocusLightsaber

feat.2da label WEAPON_FOCUS_LIGHTSABER. Vanilla row 36.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponFocusMeleeWeapons

feat.2da label WEAPON_FOCUS_MELEE_WEAPONS. Vanilla row 37.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponFocusSimpleWeapons

feat.2da label XXXX_WEAPON_FOCUS_SIMPLE_WEAPONS. Vanilla row 38.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponSpecBlaster

feat.2da label WEAPON_SPEC_BLASTER. Vanilla row 46.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponSpecBlasterRifle

feat.2da label WEAPON_SPEC_BLASTER_RIFLE. Vanilla row 47.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponSpecGrenade

feat.2da label XXXX_WEAPON_SPEC_GRENADE. Vanilla row 48.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponSpecHeavyWeapons

feat.2da label WEAPON_SPEC_HEAVY_WEAPONS. Vanilla row 49.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponSpecLightsaber

feat.2da label WEAPON_SPEC_LIGHTSABER. Vanilla row 50.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponSpecMeleeWeapons

feat.2da label WEAPON_SPEC_MELEE_WEAPONS. Vanilla row 51.

Fields

§feat_id: u16

Raw feat_id.

§

WeaponSpecSimpleWeapons

feat.2da label XXXX_WEAPON_SPEC_SIMPLE_WEAPONS. Vanilla row 52.

Fields

§feat_id: u16

Raw feat_id.

§

PowerAttack

feat.2da label POWER_ATTACK. Vanilla row 28.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedPowerAttack

feat.2da label IMPROVED_POWER_ATTACK. Vanilla row 17.

Fields

§feat_id: u16

Raw feat_id.

§

MasterPowerAttack

feat.2da label MASTER_POWER_ATTACK. Vanilla row 83.

Fields

§feat_id: u16

Raw feat_id.

§

PowerBlast

feat.2da label POWER_BLAST. Vanilla row 29.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedPowerBlast

feat.2da label IMPROVED_POWER_BLAST. Vanilla row 18.

Fields

§feat_id: u16

Raw feat_id.

§

MasterPowerBlast

feat.2da label MASTER_POWER_BLAST. Vanilla row 82.

Fields

§feat_id: u16

Raw feat_id.

§

CriticalStrike

feat.2da label CRITICAL_STRIKE. Vanilla row 8.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedCriticalStrike

feat.2da label IMPROVED_CRITICAL_STRIKE. Vanilla row 19.

Fields

§feat_id: u16

Raw feat_id.

§

MasterCriticalStrike

feat.2da label MASTER_CRITICAL_STRIKE. Vanilla row 81.

Fields

§feat_id: u16

Raw feat_id.

§

Flurry

feat.2da label FLURRY. Vanilla row 11.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedFlurry

feat.2da label IMPROVED_FLURRY. Vanilla row 91.

Fields

§feat_id: u16

Raw feat_id.

§

SniperShot

feat.2da label SNIPER_SHOT. Vanilla row 31.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedSniperShot

feat.2da label IMPROVED_SNIPER_SHOT. Vanilla row 20.

Fields

§feat_id: u16

Raw feat_id.

§

MasterSniperShot

feat.2da label MASTER_SNIPER_SHOT. Vanilla row 77.

Fields

§feat_id: u16

Raw feat_id.

§

RapidShot

feat.2da label RAPID_SHOT. Vanilla row 30.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedRapidShot

feat.2da label IMPROVED_RAPID_SHOT. Vanilla row 92.

Fields

§feat_id: u16

Raw feat_id.

§

MultiShot

feat.2da label MULTI_SHOT. Vanilla row 26.

Fields

§feat_id: u16

Raw feat_id.

§

WhirlwindAttack

feat.2da label WHIRLWIND_ATTACK. Vanilla row 53.

Fields

§feat_id: u16

Raw feat_id.

§

TwoWeaponFighting

feat.2da label TWO_WEAPON_FIGHTING. Vanilla row 3.

Fields

§feat_id: u16

Raw feat_id.

§

TwoWeaponAdvanced

feat.2da label TWO_WEAPON_ADVANCED. Vanilla row 9.

Fields

§feat_id: u16

Raw feat_id.

§

TwoWeaponMastery

feat.2da label TWO_WEAPON_MASTERY. Vanilla row 85.

Fields

§feat_id: u16

Raw feat_id.

§

JediDefense

feat.2da label JEDI_DEFENSE. Vanilla row 55.

Fields

§feat_id: u16

Raw feat_id.

§

AdvancedJediDefense

feat.2da label ADVANCED_JEDI_DEFENSE. Vanilla row 1.

Fields

§feat_id: u16

Raw feat_id.

§

MasterJediDefense

feat.2da label MASTER_JEDI_DEFENSE. Vanilla row 24.

Fields

§feat_id: u16

Raw feat_id.

§

ForceFocus

feat.2da label FORCE_FOCUS. Vanilla row 88. Sense-school focus tier.

Fields

§feat_id: u16

Raw feat_id.

§

ForceFocusAdvanced

feat.2da label FORCE_FOCUS_ADVANCED. Vanilla row 89.

Fields

§feat_id: u16

Raw feat_id.

§

ForceFocusMastery

feat.2da label FORCE_FOCUS_MASTERY. Vanilla row 90.

Fields

§feat_id: u16

Raw feat_id.

§

ForceFocusAlter

feat.2da label XXXX_FORCE_FOCUS_ALTER. Vanilla row 86. Alter-school focus, deprecated by Bioware but still loaded.

Fields

§feat_id: u16

Raw feat_id.

§

ForceFocusControl

feat.2da label XXXX_FORCE_FOCUS_CONTROL. Vanilla row 87. Control-school focus, deprecated by Bioware but still loaded.

Fields

§feat_id: u16

Raw feat_id.

§

ForceJump

feat.2da label FORCE_JUMP. Vanilla row 101.

Fields

§feat_id: u16

Raw feat_id.

§

ForceJumpAdvanced

feat.2da label FORCE_JUMP_ADVANCED. Vanilla row 102.

Fields

§feat_id: u16

Raw feat_id.

§

ForceJumpMastery

feat.2da label FORCE_JUMP_MASTERY. Vanilla row 103.

Fields

§feat_id: u16

Raw feat_id.

§

ForceImmunityFear

feat.2da label FORCE_IMMUNITY_FEAR. Vanilla row 98.

Fields

§feat_id: u16

Raw feat_id.

§

ForceImmunityStun

feat.2da label FORCE_IMMUNITY_STUN. Vanilla row 99.

Fields

§feat_id: u16

Raw feat_id.

§

ForceImmunityParalysis

feat.2da label FORCE_IMMUNITY_PARALYSIS. Vanilla row 100.

Fields

§feat_id: u16

Raw feat_id.

§

BattleMeditation

feat.2da label BATTLE_MEDITATION. Vanilla row 94. Bastila signature feat.

Fields

§feat_id: u16

Raw feat_id.

§

ForceCamoflage

feat.2da label FORCE_CAMOFLAGE. Vanilla row 97. Spelling reflects the vanilla label, which is missing the second u.

Fields

§feat_id: u16

Raw feat_id.

§

SneakAttack1D6

feat.2da label SNEAK_ATTACK_1D6. Vanilla row 60.

Fields

§feat_id: u16

Raw feat_id.

§

SneakAttack2D6

feat.2da label SNEAK_ATTACK_2D6. Vanilla row 61.

Fields

§feat_id: u16

Raw feat_id.

§

SneakAttack3D6

feat.2da label SNEAK_ATTACK_3D6. Vanilla row 62.

Fields

§feat_id: u16

Raw feat_id.

§

SneakAttack4D6

feat.2da label SNEAK_ATTACK_4D6. Vanilla row 63.

Fields

§feat_id: u16

Raw feat_id.

§

SneakAttack5D6

feat.2da label SNEAK_ATTACK_5D6. Vanilla row 64.

Fields

§feat_id: u16

Raw feat_id.

§

SneakAttack6D6

feat.2da label SNEAK_ATTACK_6D6. Vanilla row 65.

Fields

§feat_id: u16

Raw feat_id.

§

UncannyDodge1

feat.2da label UNCANNY_DODGE_1. Vanilla row 56.

Fields

§feat_id: u16

Raw feat_id.

§

UncannyDodge2

feat.2da label UNCANNY_DODGE_2. Vanilla row 57.

Fields

§feat_id: u16

Raw feat_id.

§

Toughness

feat.2da label TOUGHNESS. Vanilla row 84.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedToughness

feat.2da label IMPROVED_TOUGHNESS. Vanilla row 123.

Fields

§feat_id: u16

Raw feat_id.

§

MasterToughness

feat.2da label MASTER_TOUGHNESS. Vanilla row 124.

Fields

§feat_id: u16

Raw feat_id.

§

Conditioning

feat.2da label CONDITIONING. Vanilla row 13.

Fields

§feat_id: u16

Raw feat_id.

§

ImprovedConditioning

feat.2da label IMPROVED_CONDITIONING. Vanilla row 21.

Fields

§feat_id: u16

Raw feat_id.

§

MasterConditioning

feat.2da label MASTER_CONDITIONING. Vanilla row 22.

Fields

§feat_id: u16

Raw feat_id.

§

ImplantLevel1

feat.2da label IMPLANT_LEVEL_1. Vanilla row 14.

Fields

§feat_id: u16

Raw feat_id.

§

ImplantLevel2

feat.2da label IMPLANT_LEVEL_2. Vanilla row 15.

Fields

§feat_id: u16

Raw feat_id.

§

ImplantLevel3

feat.2da label IMPLANT_LEVEL_3. Vanilla row 16.

Fields

§feat_id: u16

Raw feat_id.

§

DroidUpgrade1

feat.2da label DROID_UPGRADE_1. Vanilla row 78.

Fields

§feat_id: u16

Raw feat_id.

§

DroidUpgrade2

feat.2da label DROID_UPGRADE_2. Vanilla row 79.

Fields

§feat_id: u16

Raw feat_id.

§

DroidUpgrade3

feat.2da label DROID_UPGRADE_3. Vanilla row 80.

Fields

§feat_id: u16

Raw feat_id.

§

BlasterIntegration

feat.2da label BLASTER_INTEGRATION. Vanilla row 96. Droid combat integration upgrade.

Fields

§feat_id: u16

Raw feat_id.

§

LogicUpgradeCombat

feat.2da label LOGIC_UPGRADE_COMBAT. Vanilla row 110.

Fields

§feat_id: u16

Raw feat_id.

§

LogicUpgradeTactician

feat.2da label LOGIC_UPGRADE_TACTICIAN. Vanilla row 111.

Fields

§feat_id: u16

Raw feat_id.

§

Dueling

feat.2da label DUELING. Vanilla row 113.

Fields

§feat_id: u16

Raw feat_id.

§

AdvancedDueling

feat.2da label ADVANCED_DUELING. Vanilla row 114.

Fields

§feat_id: u16

Raw feat_id.

§

MasterDueling

feat.2da label MASTER_DUELING. Vanilla row 115.

Fields

§feat_id: u16

Raw feat_id.

§

JediSense

feat.2da label JEDI_SENSE. Vanilla row 107. Padawan-tier danger sense feat.

Fields

§feat_id: u16

Raw feat_id.

§

KnightSense

feat.2da label KNIGHT_SENSE. Vanilla row 108.

Fields

§feat_id: u16

Raw feat_id.

§

MasterSense

feat.2da label MASTER_SENSE. Vanilla row 109.

Fields

§feat_id: u16

Raw feat_id.

§

GuardStance

feat.2da label XXXX_GUARD_STANCE. Vanilla row 54. Cut feat still wired into vanilla UTCs.

Fields

§feat_id: u16

Raw feat_id.

§

AdvancedGuardStance

feat.2da label XXXX_ADVANCED_GUARD_STANCE. Vanilla row 2.

Fields

§feat_id: u16

Raw feat_id.

§

MasterGuardStance

feat.2da label XXXX_MASTER_GUARD_STANCE. Vanilla row 25.

Fields

§feat_id: u16

Raw feat_id.

§

SkillFocusAwareness

feat.2da label XXXX_SKILL_FOCUS_AWARENESS. Vanilla row 72. Deprecated skill-focus feat still wired into a handful of vanilla UTCs.

Fields

§feat_id: u16

Raw feat_id.

§

SkillFocusTreatInjury

feat.2da label XXXX_SKILL_FOCUS_TREAT_INJURY. Vanilla row 76.

Fields

§feat_id: u16

Raw feat_id.

§

SkillFocusStealth

feat.2da label XXXX_SKILL_FOCUS_STEALTH. Vanilla row 71.

Fields

§feat_id: u16

Raw feat_id.

§

Cautious

feat.2da label CAUTIOUS. Vanilla row 7. Save bonus granted to specific encounter NPCs.

Fields

§feat_id: u16

Raw feat_id.

§

Perceptive

feat.2da label XXXX_PERCEPTIVE. Vanilla row 27. Cut feat still wired into a handful of vanilla UTCs.

Fields

§feat_id: u16

Raw feat_id.

§

Empathy

feat.2da label EMPATHY. Vanilla row 10.

Fields

§feat_id: u16

Raw feat_id.

§

GearHead

feat.2da label GEAR_HEAD. Vanilla row 12.

Fields

§feat_id: u16

Raw feat_id.

§

WookieEndurance

feat.2da label WOOKIE_ENDURANCE. Vanilla row 95.

Fields

§feat_id: u16

Raw feat_id.

§

ScoundrelsLuck

feat.2da label SCOUNDRELS_LUCK. Vanilla row 104.

Fields

§feat_id: u16

Raw feat_id.

§

Unknown

Feat identity could not be matched to any typed variant. Carries the raw feat_id plus the resolved label when reachable so consumers can still display something useful for mod-added or untyped feats.

Fields

§feat_id: u16

Raw feat_id from the GFF.

§feat_label: Option<String>

Resolved label cell from feat.2da at row feat_id, or None when the table is unavailable, the row does not exist, or the label cell is missing.

Implementations§

Source§

impl DecodedFeat

Source

pub fn feat_id(&self) -> u16

Returns the raw feat_id regardless of variant.

Trait Implementations§

Source§

impl Clone for DecodedFeat

Source§

fn clone(&self) -> DecodedFeat

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DecodedFeat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DecodedFeat

Source§

fn eq(&self, other: &DecodedFeat) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for DecodedFeat

Source§

impl StructuralPartialEq for DecodedFeat

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> StrictAs for T

Source§

fn strict_as<Dst>(self) -> Dst
where T: StrictCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> StrictCastFrom<Src> for Dst
where Src: StrictCast<Dst>,

Source§

fn strict_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.