pub struct FrameId(/* private fields */);Expand description
A frame’s handle in a Frames hierarchy.
A plain index rather than the generational id crate::ColliderId is,
because frames are not removed: a hierarchy is the star, planets and moons
of a scene, built once. With no recycling there is no slot to confuse, and
an id from one Frames used against another is the only misuse left —
which panics on the bounds check rather than reading a neighbour.
Implementations§
Trait Implementations§
impl Copy for FrameId
impl Eq for FrameId
impl StructuralPartialEq for FrameId
Auto Trait Implementations§
impl Forget for FrameId
impl Freeze for FrameId
impl Move for FrameId
impl RefUnwindSafe for FrameId
impl Send for FrameId
impl Sync for FrameId
impl Unpin for FrameId
impl UnsafeUnpin for FrameId
impl UnwindSafe for FrameId
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