Skip to main content

StatId

Struct StatId 

Source
pub struct StatId(pub u16);
Expand description

A stat identifier (row index in ItemStatCost.txt).

Stored as a 9-bit value in save files. Unknown or modded IDs are preserved as-is.

Tuple Fields§

§0: u16

Implementations§

Source§

impl StatId

Source

pub const STRENGTH: StatId

Source

pub const ENERGY: StatId

Source

pub const DEXTERITY: StatId

Source

pub const VITALITY: StatId

Source

pub const STAT_POINTS: StatId

Source

pub const SKILL_POINTS: StatId

Source

pub const LIFE: StatId

Source

pub const MAX_LIFE: StatId

Source

pub const MANA: StatId

Source

pub const MAX_MANA: StatId

Source

pub const STAMINA: StatId

Source

pub const MAX_STAMINA: StatId

Source

pub const LEVEL: StatId

Source

pub const EXPERIENCE: StatId

Source

pub const GOLD: StatId

Source

pub const STASH_GOLD: StatId

Source

pub const ARMOR_PERCENT: StatId

Source

pub const MAX_DAMAGE_PERCENT: StatId

Source

pub const MIN_DAMAGE_PERCENT: StatId

Source

pub const ATTACK_RATING: StatId

Source

pub const CHANCE_TO_BLOCK: StatId

Source

pub const MIN_DAMAGE: StatId

Source

pub const MAX_DAMAGE: StatId

Source

pub const SECOND_MIN_DAMAGE: StatId

Source

pub const SECOND_MAX_DAMAGE: StatId

Source

pub const DAMAGE_PERCENT: StatId

Source

pub const MANA_RECOVERY: StatId

Source

pub const MANA_RECOVERY_BONUS: StatId

Source

pub const STAMINA_RECOVERY_BONUS: StatId

Source

pub const LAST_EXP: StatId

Source

pub const NEXT_EXP: StatId

Source

pub const ARMOR_CLASS: StatId

Source

pub const DEFENSE_VS_MISSILES: StatId

Source

pub const DEFENSE_VS_HTH: StatId

Source

pub const NORMAL_DAMAGE_REDUCTION: StatId

Source

pub const MAGIC_DAMAGE_REDUCTION: StatId

Source

pub const DAMAGE_REDUCED: StatId

Source

pub const MAGIC_RESIST: StatId

Source

pub const MAX_MAGIC_RESIST: StatId

Source

pub const FIRE_RESIST: StatId

Source

pub const MAX_FIRE_RESIST: StatId

Source

pub const LIGHTNING_RESIST: StatId

Source

pub const MAX_LIGHTNING_RESIST: StatId

Source

pub const COLD_RESIST: StatId

Source

pub const MAX_COLD_RESIST: StatId

Source

pub const POISON_RESIST: StatId

Source

pub const MAX_POISON_RESIST: StatId

Source

pub const DAMAGE_AURA: StatId

Source

pub const FIRE_MIN_DAMAGE: StatId

Source

pub const FIRE_MAX_DAMAGE: StatId

Source

pub const LIGHTNING_MIN_DAMAGE: StatId

Source

pub const LIGHTNING_MAX_DAMAGE: StatId

Source

pub const MAGIC_MIN_DAMAGE: StatId

Source

pub const MAGIC_MAX_DAMAGE: StatId

Source

pub const COLD_MIN_DAMAGE: StatId

Source

pub const COLD_MAX_DAMAGE: StatId

Source

pub const COLD_LENGTH: StatId

Source

pub const POISON_MIN_DAMAGE: StatId

Source

pub const POISON_MAX_DAMAGE: StatId

Source

pub const POISON_LENGTH: StatId

Source

pub const LIFE_STEAL: StatId

Source

pub const LIFE_STEAL_MAX: StatId

Source

pub const MANA_STEAL: StatId

Source

pub const MANA_STEAL_MAX: StatId

Source

pub const STAMINA_DRAIN_MIN_DAMAGE: StatId

Source

pub const STAMINA_DRAIN_MAX_DAMAGE: StatId

Source

pub const STUN_LENGTH: StatId

Source

pub const VELOCITY_PERCENT: StatId

Source

pub const ATTACK_RATE: StatId

Source

pub const OTHER_ANIM_RATE: StatId

Source

pub const QUANTITY: StatId

Source

pub const VALUE: StatId

Source

pub const DURABILITY: StatId

Source

pub const MAX_DURABILITY: StatId

Source

pub const HIT_POINT_REGENERATION: StatId

Source

pub const MAX_DURABILITY_PERCENT: StatId

Source

pub const MAX_HIT_POINT_PERCENT: StatId

Source

pub const MAX_MANA_PERCENT: StatId

Source

pub const ATTACKER_TAKES_DAMAGE: StatId

Source

pub const GOLD_FIND: StatId

Source

pub const MAGIC_FIND: StatId

Source

pub const KNOCKBACK: StatId

Source

pub const TIME_DURATION: StatId

Source

pub const ADD_CLASS_SKILLS: StatId

Source

pub const UNSENT_PARAM1: StatId

Source

pub const ADD_EXPERIENCE: StatId

Source

pub const HEAL_AFTER_KILL: StatId

Source

pub const REDUCE_PRICES: StatId

Source

pub const DOUBLE_HERB_DURATION: StatId

Source

pub const LIGHT_RADIUS: StatId

Source

pub const LIGHT_COLOR: StatId

Source

pub const REQUIREMENT_PERCENT: StatId

Source

pub const LEVEL_REQUIRE: StatId

Source

pub const INCREASED_ATTACK_SPEED: StatId

Source

pub const LEVEL_REQUIRE_PERCENT: StatId

Source

pub const LAST_BLOCK_FRAME: StatId

Source

pub const FASTER_RUN_WALK: StatId

Source

pub const NON_CLASS_SKILL: StatId

Source

pub const STATE: StatId

Source

pub const FASTER_HIT_RECOVERY: StatId

Source

pub const PLAYER_COUNT: StatId

Source

pub const POISON_OVERRIDE_LENGTH: StatId

Source

pub const FASTER_BLOCK_RATE: StatId

Source

pub const BYPASS_UNDEAD: StatId

Source

pub const BYPASS_DEMONS: StatId

Source

pub const FASTER_CAST_RATE: StatId

Source

pub const BYPASS_BEASTS: StatId

Source

pub const SINGLE_SKILL: StatId

Source

pub const SLAIN_MONSTERS_REST_IN_PEACE: StatId

Source

pub const CURSE_RESISTANCE: StatId

Source

pub const POISON_LENGTH_RESIST: StatId

Source

pub const NORMAL_DAMAGE: StatId

Source

pub const HOWL: StatId

Source

pub const STUPIDITY: StatId

Source

pub const DAMAGE_TAKEN_GOES_TO_MANA: StatId

Source

pub const IGNORE_TARGET_DEFENSE: StatId

Source

pub const FRACTIONAL_TARGET_DEFENSE: StatId

Source

pub const PREVENT_MONSTER_HEAL: StatId

Source

pub const HALF_FREEZE_DURATION: StatId

Source

pub const ATTACK_RATING_PERCENT: StatId

Source

pub const DAMAGE_TARGET_DEFENSE: StatId

Source

pub const DEMON_DAMAGE_PERCENT: StatId

Source

pub const UNDEAD_DAMAGE_PERCENT: StatId

Source

pub const DEMON_ATTACK_RATING: StatId

Source

pub const UNDEAD_ATTACK_RATING: StatId

Source

pub const THROWABLE: StatId

Source

pub const ELEM_SKILLS: StatId

Source

pub const ALL_SKILLS: StatId

Source

pub const ATTACKER_TAKES_LIGHT_DAMAGE: StatId

Source

pub const IRON_MAIDEN_LEVEL: StatId

Source

pub const LIFE_TAP_LEVEL: StatId

Source

pub const THORNS_PERCENT: StatId

Source

pub const BONE_ARMOR: StatId

Source

pub const BONE_ARMOR_MAX: StatId

Source

pub const FREEZE: StatId

Source

pub const OPEN_WOUNDS: StatId

Source

pub const CRUSHING_BLOW: StatId

Source

pub const KICK_DAMAGE: StatId

Source

pub const MANA_AFTER_KILL: StatId

Source

pub const HEAL_AFTER_DEMON_KILL: StatId

Source

pub const EXTRA_BLOOD: StatId

Source

pub const DEADLY_STRIKE: StatId

Source

pub const ABSORB_FIRE_PERCENT: StatId

Source

pub const ABSORB_FIRE: StatId

Source

pub const ABSORB_LIGHTNING_PERCENT: StatId

Source

pub const ABSORB_LIGHTNING: StatId

Source

pub const ABSORB_MAGIC_PERCENT: StatId

Source

pub const ABSORB_MAGIC: StatId

Source

pub const ABSORB_COLD_PERCENT: StatId

Source

pub const ABSORB_COLD: StatId

Source

pub const SLOW: StatId

Source

pub const AURA: StatId

Source

pub const INDESTRUCTIBLE: StatId

Source

pub const CANNOT_BE_FROZEN: StatId

Source

pub const STAMINA_DRAIN_PERCENT: StatId

Source

pub const REANIMATE: StatId

Source

pub const PIERCE: StatId

Source

pub const MAGIC_ARROW: StatId

Source

pub const EXPLOSIVE_ARROW: StatId

Source

pub const THROW_MIN_DAMAGE: StatId

Source

pub const THROW_MAX_DAMAGE: StatId

Source

pub const SKILL_HAND_OF_ATHENA: StatId

Source

pub const SKILL_STAMINA_PERCENT: StatId

Source

pub const SKILL_PASSIVE_STAMINA_PERCENT: StatId

Source

pub const SKILL_CONCENTRATION: StatId

Source

pub const SKILL_ENCHANT: StatId

Source

pub const SKILL_PIERCE: StatId

Source

pub const SKILL_CONVICTION: StatId

Source

pub const SKILL_CHILLING_ARMOR: StatId

Source

pub const SKILL_FRENZY: StatId

Source

pub const SKILL_DECREPIFY: StatId

Source

pub const SKILL_ARMOR_PERCENT: StatId

Source

pub const ALIGNMENT: StatId

Source

pub const TARGET0: StatId

Source

pub const TARGET1: StatId

Source

pub const GOLD_LOST: StatId

Source

pub const CONVERSION_LEVEL: StatId

Source

pub const CONVERSION_MAX_HIT_POINTS: StatId

Source

pub const UNIT_DO_OVERLAY: StatId

Source

pub const ATTACK_VS_MON_TYPE: StatId

Source

pub const DAMAGE_VS_MON_TYPE: StatId

Source

pub const FADE: StatId

Source

pub const ARMOR_OVERRIDE_PERCENT: StatId

Source

pub const LAST_HIT_REACT_FRAME: StatId

Source

pub const SEASON: StatId

Source

pub const BONUS_MIN_DAMAGE: StatId

Source

pub const BONUS_MAX_DAMAGE: StatId

Source

pub const PIERCE_COLD_IMMUNITY: StatId

Source

pub const ADD_SKILL_TAB: StatId

Source

pub const PIERCE_FIRE_IMMUNITY: StatId

Source

pub const PIERCE_LIGHT_IMMUNITY: StatId

Source

pub const PIERCE_POISON_IMMUNITY: StatId

Source

pub const PIERCE_DAMAGE_IMMUNITY: StatId

Source

pub const PIERCE_MAGIC_IMMUNITY: StatId

Source

pub const NUM_SOCKETS: StatId

Source

pub const SKILL_ON_ATTACK: StatId

Source

pub const SKILL_ON_KILL: StatId

Source

pub const SKILL_ON_DEATH: StatId

Source

pub const SKILL_ON_HIT: StatId

Source

pub const SKILL_ON_LEVEL_UP: StatId

Source

pub const CHARGE_NO_CONSUME: StatId

Source

pub const SKILL_ON_GET_HIT: StatId

Source

pub const MODIFIER_LIST_CAST_ID: StatId

Source

pub const PASSIVE_MASTERY_ITEM_REQUIREMENT_PERCENT: StatId

Source

pub const ITEM_CHARGED_SKILL: StatId

Source

pub const NO_CONSUME: StatId

Source

pub const PASSIVE_MASTERY_NO_CONSUME: StatId

Source

pub const PASSIVE_MASTERY_REPLENISH_ON_CRIT: StatId

Source

pub const MISSILE_THORNS_PERCENT: StatId

Source

pub const PASSIVE_MASTERY_ITEM_LEVEL_REQUIREMENT_PERCENT: StatId

Source

pub const UBER_ANCIENTS_ESCALATION: StatId

Source

pub const UBER_ANCIENTS_DEFEATED: StatId

Source

pub const UNUSED212: StatId

Source

pub const PASSIVE_MASTERY_ATTACK_SPEED: StatId

Source

pub const ARMOR_PER_LEVEL: StatId

Source

pub const ARMOR_PERCENT_PER_LEVEL: StatId

Source

pub const LIFE_PER_LEVEL: StatId

Source

pub const MANA_PER_LEVEL: StatId

Source

pub const MAX_DAMAGE_PER_LEVEL: StatId

Source

pub const MAX_DAMAGE_PERCENT_PER_LEVEL: StatId

Source

pub const STRENGTH_PER_LEVEL: StatId

Source

pub const DEXTERITY_PER_LEVEL: StatId

Source

pub const ENERGY_PER_LEVEL: StatId

Source

pub const VITALITY_PER_LEVEL: StatId

Source

pub const ATTACK_RATING_PER_LEVEL: StatId

Source

pub const ATTACK_RATING_PERCENT_PER_LEVEL: StatId

Source

pub const COLD_DAMAGE_MAX_PER_LEVEL: StatId

Source

pub const FIRE_DAMAGE_MAX_PER_LEVEL: StatId

Source

pub const LIGHTNING_DAMAGE_MAX_PER_LEVEL: StatId

Source

pub const POISON_DAMAGE_MAX_PER_LEVEL: StatId

Source

pub const RESIST_COLD_PER_LEVEL: StatId

Source

pub const RESIST_FIRE_PER_LEVEL: StatId

Source

pub const RESIST_LIGHTNING_PER_LEVEL: StatId

Source

pub const RESIST_POISON_PER_LEVEL: StatId

Source

pub const ABSORB_COLD_PER_LEVEL: StatId

Source

pub const ABSORB_FIRE_PER_LEVEL: StatId

Source

pub const ABSORB_LIGHTNING_PER_LEVEL: StatId

Source

pub const ABSORB_POISON_PER_LEVEL: StatId

Source

pub const THORNS_PER_LEVEL: StatId

Source

pub const FIND_GOLD_PER_LEVEL: StatId

Source

pub const MAGIC_FIND_PER_LEVEL: StatId

Source

pub const REGEN_STAMINA_PER_LEVEL: StatId

Source

pub const STAMINA_PER_LEVEL: StatId

Source

pub const DAMAGE_DEMON_PER_LEVEL: StatId

Source

pub const DAMAGE_UNDEAD_PER_LEVEL: StatId

Source

pub const ATTACK_RATING_DEMON_PER_LEVEL: StatId

Source

pub const ATTACK_RATING_UNDEAD_PER_LEVEL: StatId

Source

pub const CRUSHING_BLOW_PER_LEVEL: StatId

Source

pub const OPEN_WOUNDS_PER_LEVEL: StatId

Source

pub const KICK_DAMAGE_PER_LEVEL: StatId

Source

pub const DEADLY_STRIKE_PER_LEVEL: StatId

Source

pub const FIND_GEMS_PER_LEVEL: StatId

Source

pub const REPLENISH_DURABILITY: StatId

Source

pub const REPLENISH_QUANTITY: StatId

Source

pub const EXTRA_STACK: StatId

Source

pub const FIND_ITEM: StatId

Source

pub const SLASH_DAMAGE: StatId

Source

pub const SLASH_DAMAGE_PERCENT: StatId

Source

pub const CRUSH_DAMAGE: StatId

Source

pub const CRUSH_DAMAGE_PERCENT: StatId

Source

pub const THRUST_DAMAGE: StatId

Source

pub const THRUST_DAMAGE_PERCENT: StatId

Source

pub const ABSORB_SLASH: StatId

Source

pub const ABSORB_CRUSH: StatId

Source

pub const ABSORB_THRUST: StatId

Source

pub const ABSORB_SLASH_PERCENT: StatId

Source

pub const ABSORB_CRUSH_PERCENT: StatId

Source

pub const ABSORB_THRUST_PERCENT: StatId

Source

pub const ARMOR_BY_TIME: StatId

Source

pub const ARMOR_PERCENT_BY_TIME: StatId

Source

pub const LIFE_BY_TIME: StatId

Source

pub const MANA_BY_TIME: StatId

Source

pub const MAX_DAMAGE_BY_TIME: StatId

Source

pub const MAX_DAMAGE_PERCENT_BY_TIME: StatId

Source

pub const STRENGTH_BY_TIME: StatId

Source

pub const DEXTERITY_BY_TIME: StatId

Source

pub const ENERGY_BY_TIME: StatId

Source

pub const VITALITY_BY_TIME: StatId

Source

pub const ATTACK_RATING_BY_TIME: StatId

Source

pub const ATTACK_RATING_PERCENT_BY_TIME: StatId

Source

pub const COLD_DAMAGE_MAX_BY_TIME: StatId

Source

pub const FIRE_DAMAGE_MAX_BY_TIME: StatId

Source

pub const LIGHTNING_DAMAGE_MAX_BY_TIME: StatId

Source

pub const POISON_DAMAGE_MAX_BY_TIME: StatId

Source

pub const RESIST_COLD_BY_TIME: StatId

Source

pub const RESIST_FIRE_BY_TIME: StatId

Source

pub const RESIST_LIGHTNING_BY_TIME: StatId

Source

pub const RESIST_POISON_BY_TIME: StatId

Source

pub const ABSORB_COLD_BY_TIME: StatId

Source

pub const ABSORB_FIRE_BY_TIME: StatId

Source

pub const ABSORB_LIGHTNING_BY_TIME: StatId

Source

pub const ABSORB_POISON_BY_TIME: StatId

Source

pub const FIND_GOLD_BY_TIME: StatId

Source

pub const MAGIC_FIND_BY_TIME: StatId

Source

pub const REGEN_STAMINA_BY_TIME: StatId

Source

pub const STAMINA_BY_TIME: StatId

Source

pub const DAMAGE_DEMON_BY_TIME: StatId

Source

pub const DAMAGE_UNDEAD_BY_TIME: StatId

Source

pub const ATTACK_RATING_DEMON_BY_TIME: StatId

Source

pub const ATTACK_RATING_UNDEAD_BY_TIME: StatId

Source

pub const CRUSHING_BLOW_BY_TIME: StatId

Source

pub const OPEN_WOUNDS_BY_TIME: StatId

Source

pub const KICK_DAMAGE_BY_TIME: StatId

Source

pub const DEADLY_STRIKE_BY_TIME: StatId

Source

pub const FIND_GEMS_BY_TIME: StatId

Source

pub const PIERCE_COLD: StatId

Source

pub const PIERCE_FIRE: StatId

Source

pub const PIERCE_LIGHTNING: StatId

Source

pub const PIERCE_POISON: StatId

Source

pub const DAMAGE_VS_MONSTER: StatId

Source

pub const DAMAGE_PERCENT_VS_MONSTER: StatId

Source

pub const ATTACK_RATING_VS_MONSTER: StatId

Source

pub const ATTACK_RATING_PERCENT_VS_MONSTER: StatId

Source

pub const AC_VS_MONSTER: StatId

Source

pub const AC_PERCENT_VS_MONSTER: StatId

Source

pub const FIRE_LENGTH: StatId

Source

pub const BURNING_MIN: StatId

Source

pub const BURNING_MAX: StatId

Source

pub const PROGRESSIVE_DAMAGE: StatId

Source

pub const PROGRESSIVE_STEAL: StatId

Source

pub const PROGRESSIVE_OTHER: StatId

Source

pub const PROGRESSIVE_FIRE: StatId

Source

pub const PROGRESSIVE_COLD: StatId

Source

pub const PROGRESSIVE_LIGHTNING: StatId

Source

pub const EXTRA_CHARGES: StatId

Source

pub const PROGRESSIVE_ATTACK_RATING: StatId

Source

pub const POISON_COUNT: StatId

Source

pub const DAMAGE_FRAME_RATE: StatId

Source

pub const PIERCE_IDX: StatId

Source

pub const FIRE_SKILL_DAMAGE: StatId

Source

pub const LIGHTNING_SKILL_DAMAGE: StatId

Source

pub const COLD_SKILL_DAMAGE: StatId

Source

pub const POISON_SKILL_DAMAGE: StatId

Source

pub const ENEMY_FIRE_RESIST: StatId

Source

pub const ENEMY_LIGHTNING_RESIST: StatId

Source

pub const ENEMY_COLD_RESIST: StatId

Source

pub const ENEMY_POISON_RESIST: StatId

Source

pub const PASSIVE_CRITICAL_STRIKE: StatId

Source

pub const PASSIVE_DODGE: StatId

Source

pub const PASSIVE_AVOID: StatId

Source

pub const PASSIVE_EVADE: StatId

Source

pub const PASSIVE_WARMTH: StatId

Source

pub const PASSIVE_MASTERY_MELEE_ATTACK_RATING: StatId

Source

pub const PASSIVE_MASTERY_MELEE_DAMAGE: StatId

Source

pub const PASSIVE_MASTERY_MELEE_CRITICAL: StatId

Source

pub const PASSIVE_MASTERY_THROW_ATTACK_RATING: StatId

Source

pub const PASSIVE_MASTERY_THROW_DAMAGE: StatId

Source

pub const PASSIVE_MASTERY_THROW_CRITICAL: StatId

Source

pub const PASSIVE_WEAPON_BLOCK: StatId

Source

pub const SUMMON_RESIST: StatId

Source

pub const MODIFIER_LIST_SKILL: StatId

Source

pub const MODIFIER_LIST_LEVEL: StatId

Source

pub const LAST_SENT_HIT_POINT_PERCENT: StatId

Source

pub const SOURCE_UNIT_TYPE: StatId

Source

pub const SOURCE_UNIT_ID: StatId

Source

pub const SHORT_PARAM1: StatId

Source

pub const QUEST_ITEM_DIFFICULTY: StatId

Source

pub const PASSIVE_MAGIC_MASTERY: StatId

Source

pub const PASSIVE_MAGIC_PIERCE: StatId

Source

pub const SKILL_COOLDOWN: StatId

Source

pub const SKILL_MISSILE_DAMAGE_SCALE: StatId

Source

pub const SKILL_PSYCHIC_WARD: StatId

Source

pub const SKILL_PSYCHIC_WARD_MAX: StatId

Source

pub const SKILL_CHANNELING_TICK: StatId

Source

pub const CUSTOMIZATION_INDEX: StatId

Source

pub const ITEM_MAGIC_DAMAGE_MAX_PER_LEVEL: StatId

Source

pub const PASSIVE_DAMAGE_PIERCE: StatId

Source

pub const HERALD_TIER: StatId

Source

pub const TERMINATOR: StatId

Source§

impl StatId

Source

pub fn name(self) -> Option<&'static str>

Returns the name of a known stat, e.g. "FireResist".

Source

pub fn paired_stats(self) -> &'static [StatId]

Stats that follow this stat in item stat lists without their own ID.

Trait Implementations§

Source§

impl Clone for StatId

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for StatId

Source§

impl Debug for StatId

Source§

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

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

impl Default for StatId

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for StatId

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for StatId

Source§

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

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

impl Eq for StatId

Source§

impl From<u16> for StatId

Source§

fn from(v: u16) -> Self

Converts to this type from the input type.
Source§

impl Hash for StatId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for StatId

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for StatId

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for StatId

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for StatId

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for StatId

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> 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<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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.