pub struct Player { /* private fields */ }
Implementations§
Source§impl Player
impl Player
pub fn new(position: PlayerPosition) -> Self
pub fn position(&self) -> &PlayerPosition
Trait Implementations§
Source§impl Ord for Player
impl Ord for Player
Source§impl PartialOrd for Player
impl PartialOrd for Player
impl Eq for Player
impl StructuralPartialEq for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
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