pub struct ImplIdTracker { /* private fields */ }Implementations§
Source§impl ImplIdTracker
impl ImplIdTracker
pub fn new() -> Self
pub fn new_at(id: u64) -> Self
pub fn next(&self) -> ImplID
pub fn peek(&self) -> u64
Sourcepub fn make_clone(&self) -> Self
pub fn make_clone(&self) -> Self
Clone this ID tracker. After this is done, only one of the ID trackers may be used otherwise duplicate IDs will be generated. It is up to the caller of this method to make sure that no mutable references are handed out to one of the clonse
Trait Implementations§
Source§impl Debug for ImplIdTracker
impl Debug for ImplIdTracker
Source§impl Default for ImplIdTracker
impl Default for ImplIdTracker
Source§impl<'de> Deserialize<'de> for ImplIdTracker
impl<'de> Deserialize<'de> for ImplIdTracker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for ImplIdTracker
impl RefUnwindSafe for ImplIdTracker
impl Send for ImplIdTracker
impl Sync for ImplIdTracker
impl Unpin for ImplIdTracker
impl UnwindSafe for ImplIdTracker
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more