pub struct IdGenerator { /* private fields */ }Expand description
ID generator for creating unique element IDs
Implementations§
Source§impl IdGenerator
impl IdGenerator
Sourcepub fn starting_from(start_id: u64) -> Self
pub fn starting_from(start_id: u64) -> Self
Create a new ID generator starting from a specific value
Trait Implementations§
Source§impl Clone for IdGenerator
impl Clone for IdGenerator
Source§fn clone(&self) -> IdGenerator
fn clone(&self) -> IdGenerator
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 moreSource§impl Debug for IdGenerator
impl Debug for IdGenerator
Auto Trait Implementations§
impl Freeze for IdGenerator
impl RefUnwindSafe for IdGenerator
impl Send for IdGenerator
impl Sync for IdGenerator
impl Unpin for IdGenerator
impl UnwindSafe for IdGenerator
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