Struct ketos::name::NameOutputConversion
[−]
[src]
pub struct NameOutputConversion<'a> { /* fields omitted */ }
Converts global names in a running interpreter into module-local names, retaining string representations, which can be written to a bytecode file.
Methods
impl<'a> NameOutputConversion<'a>
[src]
fn new(store: &NameStore) -> NameOutputConversion
Creates a new NameOutputConversion
, using the given NameStore
to lookup global name values.
fn add(&mut self, name: Name) -> u32
Adds a name to the collection and returns a module-local value.
fn names(&self) -> &[&'a str]
Returns the collection of name string representations.
fn len(&self) -> usize
Returns the number of names collected.
fn is_empty(&self) -> bool
Returns whether any name was collected.
Trait Implementations
impl<'a> Clone for NameOutputConversion<'a>
[src]
fn clone(&self) -> NameOutputConversion<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more