[−][src]Struct ketos::name::NameOutputConversion
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]
fn clone(&self) -> NameOutputConversion<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for NameOutputConversion<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for NameOutputConversion<'a>
impl<'a> Send for NameOutputConversion<'a>
impl<'a> Sync for NameOutputConversion<'a>
impl<'a> Unpin for NameOutputConversion<'a>
impl<'a> UnwindSafe for NameOutputConversion<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,