pub struct Leveled<T: LevelFor> {
pub accumulated_xp: u32,
pub element: T,
}Expand description
A levelable element. It can be anything: an item, a player, a monster, a skill.
Fields§
§accumulated_xp: u32The experience that this has accumulated.
element: TThe inner element that is leveled.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Leveled<T>where
T: Freeze,
impl<T> RefUnwindSafe for Leveled<T>where
T: RefUnwindSafe,
impl<T> Send for Leveled<T>where
T: Send,
impl<T> Sync for Leveled<T>where
T: Sync,
impl<T> Unpin for Leveled<T>where
T: Unpin,
impl<T> UnwindSafe for Leveled<T>where
T: UnwindSafe,
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