pub struct SpatialObject {
pub player_id: PlayerId,
pub position: Position,
pub last_updated: u64,
}Expand description
Object stored in the spatial index
Fields§
§player_id: PlayerIdPlayer identifier
position: PositionObject position
last_updated: u64Last update timestamp
Implementations§
Trait Implementations§
Source§impl Clone for SpatialObject
impl Clone for SpatialObject
Source§fn clone(&self) -> SpatialObject
fn clone(&self) -> SpatialObject
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 moreAuto Trait Implementations§
impl Freeze for SpatialObject
impl RefUnwindSafe for SpatialObject
impl Send for SpatialObject
impl Sync for SpatialObject
impl Unpin for SpatialObject
impl UnsafeUnpin for SpatialObject
impl UnwindSafe for SpatialObject
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