Enum flat_spatial::grid::ObjectState
source · pub enum ObjectState<V2: Vec2> {
Unchanged,
NewPos(V2),
Relocate(V2, CellIdx),
Removed,
}
Expand description
State of an object, maintain() updates the internals of the grid and resets this to Unchanged
Variants§
Trait Implementations§
source§impl<V2: Clone + Vec2> Clone for ObjectState<V2>
impl<V2: Clone + Vec2> Clone for ObjectState<V2>
source§fn clone(&self) -> ObjectState<V2>
fn clone(&self) -> ObjectState<V2>
Returns a copy 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 moreimpl<V2: Copy + Vec2> Copy for ObjectState<V2>
Auto Trait Implementations§
impl<V2> RefUnwindSafe for ObjectState<V2>where V2: RefUnwindSafe,
impl<V2> Send for ObjectState<V2>where V2: Send,
impl<V2> Sync for ObjectState<V2>where V2: Sync,
impl<V2> Unpin for ObjectState<V2>where V2: Unpin,
impl<V2> UnwindSafe for ObjectState<V2>where V2: 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