pub struct PlayerSnapshot {}Fields§
§id: u8§position: [f32; 3]§velocity: [f32; 3]§yaw: f32§pitch: f32§health: u8§ammo: u8§grounded: bool§jump_coyote: f32§jump_buffer: f32§jump_held: bool§fire_cooldown: u16§reload_ticks: u16§respawn_ticks: u16Trait Implementations§
Source§impl Clone for PlayerSnapshot
impl Clone for PlayerSnapshot
Source§fn clone(&self) -> PlayerSnapshot
fn clone(&self) -> PlayerSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerSnapshot
impl Debug for PlayerSnapshot
Source§impl Default for PlayerSnapshot
impl Default for PlayerSnapshot
Source§fn default() -> PlayerSnapshot
fn default() -> PlayerSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for PlayerSnapshot
impl PartialEq for PlayerSnapshot
impl Copy for PlayerSnapshot
impl StructuralPartialEq for PlayerSnapshot
Auto Trait Implementations§
impl Freeze for PlayerSnapshot
impl RefUnwindSafe for PlayerSnapshot
impl Send for PlayerSnapshot
impl Sync for PlayerSnapshot
impl Unpin for PlayerSnapshot
impl UnwindSafe for PlayerSnapshot
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