pub struct LabelGenerator {
pub next: u16,
pub name_to_label: HashMap<Name, u16>,
pub label_to_name: HashMap<u16, Name>,
}
Fields§
§next: u16
§name_to_label: HashMap<Name, u16>
§label_to_name: HashMap<u16, Name>
Implementations§
Trait Implementations§
Source§impl Clone for LabelGenerator
impl Clone for LabelGenerator
Source§fn clone(&self) -> LabelGenerator
fn clone(&self) -> LabelGenerator
Returns a copy 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 LabelGenerator
impl Debug for LabelGenerator
Source§impl Default for LabelGenerator
impl Default for LabelGenerator
Source§fn default() -> LabelGenerator
fn default() -> LabelGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LabelGenerator
impl RefUnwindSafe for LabelGenerator
impl Send for LabelGenerator
impl Sync for LabelGenerator
impl Unpin for LabelGenerator
impl UnwindSafe for LabelGenerator
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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