pub struct IdUsize { /* private fields */ }Expand description
An allocated usize identifier.
Implementations§
Source§impl IdUsize
impl IdUsize
Sourcepub const fn val(&self) -> usize
👎Deprecated since 0.2.0: Use get() method instead.
pub const fn val(&self) -> usize
get() method instead.Return the internal usize value.
Sourcepub fn into_arcid(self) -> ArcIdUsize
pub fn into_arcid(self) -> ArcIdUsize
Turn object into an ArcIdUsize.
let idbag = idbag::IdBagUsize::new();
let aid = idbag.alloc().into_arcid();Trait Implementations§
impl Eq for IdUsize
Auto Trait Implementations§
impl Freeze for IdUsize
impl !RefUnwindSafe for IdUsize
impl Send for IdUsize
impl Sync for IdUsize
impl Unpin for IdUsize
impl !UnwindSafe for IdUsize
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.