struct NameGenerator {
used: HashSet<String>,
counters: HashMap<String, usize>,
}Fields§
§used: HashSet<String>§counters: HashMap<String, usize>Implementations§
Source§impl NameGenerator
impl NameGenerator
fn make_unique(&mut self, field_name: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NameGenerator
impl RefUnwindSafe for NameGenerator
impl Send for NameGenerator
impl Sync for NameGenerator
impl Unpin for NameGenerator
impl UnsafeUnpin for NameGenerator
impl UnwindSafe for NameGenerator
Blanket Implementations§
impl<T> Allocation for T
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