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

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]

pub fn new(store: &NameStore) -> NameOutputConversion[src]

Creates a new NameOutputConversion, using the given NameStore to lookup global name values.

pub fn add(&mut self, name: Name) -> u32[src]

Adds a name to the collection and returns a module-local value.

pub fn names(&self) -> &[&'a str][src]

Returns the collection of name string representations.

pub fn len(&self) -> usize[src]

Returns the number of names collected.

pub fn is_empty(&self) -> bool[src]

Returns whether any name was collected.

Trait Implementations

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

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,