Struct PlayerExperience
#[non_exhaustive]pub struct PlayerExperience {
pub level: i32,
pub progress: f32,
pub total: i32,
}Expand description
A player’s experience (Player.experienceLevel, experienceProgress,
totalExperience).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.level: i32The experience level.
progress: f32Progress toward the next level, from 0 to 1.
total: i32The total experience points.
Trait Implementations§
§impl Clone for PlayerExperience
impl Clone for PlayerExperience
§fn clone(&self) -> PlayerExperience
fn clone(&self) -> PlayerExperience
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 PlayerExperience
§impl Debug for PlayerExperience
impl Debug for PlayerExperience
§impl From<PlayerExperience> for PlayerExperience
impl From<PlayerExperience> for PlayerExperience
§fn from(v: PlayerExperience) -> PlayerExperience
fn from(v: PlayerExperience) -> PlayerExperience
Converts to this type from the input type.
§impl PartialEq for PlayerExperience
impl PartialEq for PlayerExperience
impl StructuralPartialEq for PlayerExperience
Auto Trait Implementations§
impl Freeze for PlayerExperience
impl RefUnwindSafe for PlayerExperience
impl Send for PlayerExperience
impl Sync for PlayerExperience
impl Unpin for PlayerExperience
impl UnsafeUnpin for PlayerExperience
impl UnwindSafe for PlayerExperience
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