pub struct LevelingStruct {
pub name: String,
pub level: i64,
pub max_level: i64,
pub total_exp: i64,
pub current_exp: i64,
pub exp_for_next: i64,
pub progress_to_next: f64,
}Fields§
§name: String§level: i64§max_level: i64§total_exp: i64§current_exp: i64Exp only for the current level
exp_for_next: i64Total exp needed for the next level
progress_to_next: f64Progress to next level (0.0 to 1.0)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LevelingStruct
impl RefUnwindSafe for LevelingStruct
impl Send for LevelingStruct
impl Sync for LevelingStruct
impl Unpin for LevelingStruct
impl UnwindSafe for LevelingStruct
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