pub struct HandleSequence { /* private fields */ }Expand description
Deterministic allocator for handles in one caller-supplied namespace.
Implementations§
Source§impl HandleSequence
impl HandleSequence
Sourcepub fn next_handle(&mut self) -> HandleId
pub fn next_handle(&mut self) -> HandleId
Allocates the next handle in the sequence.
§Panics
Panics after exhausting all nonzero u64 sequence numbers instead of
wrapping into an existing handle.
Trait Implementations§
Source§impl Clone for HandleSequence
impl Clone for HandleSequence
Source§fn clone(&self) -> HandleSequence
fn clone(&self) -> HandleSequence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandleSequence
impl Debug for HandleSequence
impl Eq for HandleSequence
Source§impl PartialEq for HandleSequence
impl PartialEq for HandleSequence
impl StructuralPartialEq for HandleSequence
Auto Trait Implementations§
impl Freeze for HandleSequence
impl RefUnwindSafe for HandleSequence
impl Send for HandleSequence
impl Sync for HandleSequence
impl Unpin for HandleSequence
impl UnsafeUnpin for HandleSequence
impl UnwindSafe for HandleSequence
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