Struct ketos::name::NameOutputConversion [] [src]

pub struct NameOutputConversion<'a> {
    // some 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 get_names(&self) -> &[&'a str]

Returns the collection of name string representations.

fn len(&self) -> usize

Returns the number of names collected.

Trait Implementations

impl<'a> Debug for NameOutputConversion<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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