pub struct Stat {
pub kind: u8,
pub base: Option<i32>,
pub roll: RollType,
}
Expand description
Structure representing an identification stat as it is encoded within the wynntils format
Fields§
§kind: u8
The id of the identification
base: Option<i32>
The base value of the identification.
This value is optional when extended encoding is not used.
When decoding this value may be none if the given string was encoded using non extended encoding.
roll: RollType
The roll of this identification.
The roll is either fixed or a % multiplier of the base value
Implementations§
Source§impl Stat
impl Stat
Sourcepub const fn pre_identified(&self) -> bool
pub const fn pre_identified(&self) -> bool
Return a boolean depending on if the identification is pre-identified or not
Sourcepub const fn contains_extended(&self) -> bool
pub const fn contains_extended(&self) -> bool
Check if this identification contains extended data for encoding the base value
Trait Implementations§
impl Eq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more