Struct isla_lib::ir::Symtab [−][src]
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>ⓘ
[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]
&mut self,
instr: &'ir Instr<String, B>
) -> Instr<Name, B>
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>>ⓘ
[src]
&mut self,
defs: &'ir [Def<String, B>]
) -> Vec<Def<Name, B>>ⓘ
Trait Implementations
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]
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,