pub struct FixedIdGenerator<Id>(pub Id);Expand description
An IdGenerator that always returns the same, fixed id.
Tuple Fields§
§0: IdTrait Implementations§
Source§impl<Id> Clone for FixedIdGenerator<Id>where
Id: Clone,
impl<Id> Clone for FixedIdGenerator<Id>where
Id: Clone,
Source§fn clone(&self) -> FixedIdGenerator<Id>
fn clone(&self) -> FixedIdGenerator<Id>
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<Id> Debug for FixedIdGenerator<Id>where
Id: Debug,
impl<Id> Debug for FixedIdGenerator<Id>where
Id: Debug,
Source§impl<Id> IdGenerator<Id> for FixedIdGenerator<Id>where
Id: EntityId,
impl<Id> IdGenerator<Id> for FixedIdGenerator<Id>where
Id: EntityId,
Auto Trait Implementations§
impl<Id> Freeze for FixedIdGenerator<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for FixedIdGenerator<Id>where
Id: RefUnwindSafe,
impl<Id> Send for FixedIdGenerator<Id>where
Id: Send,
impl<Id> Sync for FixedIdGenerator<Id>where
Id: Sync,
impl<Id> Unpin for FixedIdGenerator<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for FixedIdGenerator<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for FixedIdGenerator<Id>where
Id: UnwindSafe,
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