pub struct LayerId(/* private fields */);Expand description
A globally unique, opaque identifier for a map layer.
Identifiers are assigned via LayerId::next() using a lock-free
atomic counter and are guaranteed unique within the lifetime of the
process. They are not stable across process restarts and should
not be serialized.
use rustial_engine::LayerId;
let a = LayerId::next();
let b = LayerId::next();
assert_ne!(a, b);Implementations§
Trait Implementations§
Source§impl Ord for LayerId
impl Ord for LayerId
Source§impl PartialOrd for LayerId
impl PartialOrd for LayerId
impl Copy for LayerId
impl Eq for LayerId
impl StructuralPartialEq for LayerId
Auto Trait Implementations§
impl Freeze for LayerId
impl RefUnwindSafe for LayerId
impl Send for LayerId
impl Sync for LayerId
impl Unpin for LayerId
impl UnsafeUnpin for LayerId
impl UnwindSafe for LayerId
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