pub struct LevelProgress {
pub current: u16,
pub next: u16,
pub xp: f64,
pub xp_floor: f64,
pub xp_ceiling: f64,
pub progress: f64,
pub xp_into_level: f64,
pub xp_to_next: f64,
pub at_cap: bool,
}Expand description
Progress within the current display level or skill tier.
Fields§
§current: u16§next: u16§xp: f64§xp_floor: f64§xp_ceiling: f64§progress: f64Fraction complete toward next (0.0–1.0).
xp_into_level: f64§xp_to_next: f64§at_cap: boolImplementations§
Source§impl LevelProgress
impl LevelProgress
Trait Implementations§
Source§impl Clone for LevelProgress
impl Clone for LevelProgress
Source§fn clone(&self) -> LevelProgress
fn clone(&self) -> LevelProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LevelProgress
Source§impl Debug for LevelProgress
impl Debug for LevelProgress
Source§impl PartialEq for LevelProgress
impl PartialEq for LevelProgress
impl StructuralPartialEq for LevelProgress
Auto Trait Implementations§
impl Freeze for LevelProgress
impl RefUnwindSafe for LevelProgress
impl Send for LevelProgress
impl Sync for LevelProgress
impl Unpin for LevelProgress
impl UnsafeUnpin for LevelProgress
impl UnwindSafe for LevelProgress
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