Struct calyx_utils::NameGenerator
source · [−]pub struct NameGenerator { /* private fields */ }
Expand description
Simple HashMap-based name generator that generates new names for each prefix.
Implementations
sourceimpl NameGenerator
impl NameGenerator
sourcepub fn with_prev_defined_names(names: HashSet<Id>) -> Self
pub fn with_prev_defined_names(names: HashSet<Id>) -> Self
Create a NameGenerator where names
are already defined so that this generator
will never generate those names.
Trait Implementations
sourceimpl Clone for NameGenerator
impl Clone for NameGenerator
sourcefn clone(&self) -> NameGenerator
fn clone(&self) -> NameGenerator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for NameGenerator
impl Send for NameGenerator
impl Sync for NameGenerator
impl Unpin for NameGenerator
impl UnwindSafe for NameGenerator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more