pub struct Char {
pub id: usize,
pub name: String,
pub health: u32,
pub attack: u32,
}Fields§
§id: usize§name: String§health: u32§attack: u32Trait Implementations§
impl Send for Char
impl Sync for Char
Auto Trait Implementations§
impl Freeze for Char
impl RefUnwindSafe for Char
impl Unpin for Char
impl UnsafeUnpin for Char
impl UnwindSafe for Char
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