Struct isla_lib::ir::Symtab[][src]

pub struct Symtab<'ir> { /* fields omitted */ }

A Symtab is a symbol table that maps each u32 identifier used in the IR to it’s &str name and vice-versa.

Implementations

impl<'ir> Symtab<'ir>[src]

pub fn intern(&mut self, sym: &'ir str) -> Name[src]

pub fn gensym(&mut self) -> Name[src]

pub fn to_raw_table(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn from_raw_table(raw: &'ir [String]) -> Self[src]

pub fn to_str(&self, n: Name) -> &'ir str[src]

pub fn new() -> Self[src]

pub fn lookup(&self, sym: &str) -> Name[src]

pub fn get(&self, sym: &str) -> Option<Name>[src]

pub fn intern_ty(&mut self, ty: &'ir Ty<String>) -> Ty<Name>[src]

pub fn get_loc(&self, loc: &Loc<String>) -> Option<Loc<Name>>[src]

pub fn intern_loc(&mut self, loc: &'ir Loc<String>) -> Loc<Name>[src]

pub fn intern_exp(&mut self, exp: &'ir Exp<String>) -> Exp<Name>[src]

pub fn intern_instr<B: BV>(
    &mut self,
    instr: &'ir Instr<String, B>
) -> Instr<Name, B>
[src]

pub fn intern_def<B: BV>(&mut self, def: &'ir Def<String, B>) -> Def<Name, B>[src]

pub fn intern_defs<B: BV>(
    &mut self,
    defs: &'ir [Def<String, B>]
) -> Vec<Def<Name, B>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Trait Implementations

impl<'ir> Clone for Symtab<'ir>[src]

Auto Trait Implementations

impl<'ir> RefUnwindSafe for Symtab<'ir>

impl<'ir> Send for Symtab<'ir>

impl<'ir> Sync for Symtab<'ir>

impl<'ir> Unpin for Symtab<'ir>

impl<'ir> UnwindSafe for Symtab<'ir>

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> Same<T> for T

type Output = T

Should always be Self

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.