pub struct StoreObject<O, V2: Vec2> {
pub state: ObjectState<V2>,
pub pos: V2,
pub cell_id: CellIdx,
/* private fields */
}
Expand description
The actual object stored in the store
Fields§
§state: ObjectState<V2>
§pos: V2
§cell_id: CellIdx
Trait Implementations§
Source§impl<O: Clone, V2: Clone + Vec2> Clone for StoreObject<O, V2>
impl<O: Clone, V2: Clone + Vec2> Clone for StoreObject<O, V2>
Source§fn clone(&self) -> StoreObject<O, V2>
fn clone(&self) -> StoreObject<O, V2>
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 moreimpl<O: Copy, V2: Copy + Vec2> Copy for StoreObject<O, V2>
Auto Trait Implementations§
impl<O, V2> Freeze for StoreObject<O, V2>
impl<O, V2> RefUnwindSafe for StoreObject<O, V2>where
O: RefUnwindSafe,
V2: RefUnwindSafe,
impl<O, V2> Send for StoreObject<O, V2>
impl<O, V2> Sync for StoreObject<O, V2>
impl<O, V2> Unpin for StoreObject<O, V2>
impl<O, V2> UnwindSafe for StoreObject<O, V2>where
O: UnwindSafe,
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