pub struct SymbolTable { /* private fields */ }
Implementations§
Source§impl SymbolTable
impl SymbolTable
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, Error>
pub fn from_reader<R: Read>(reader: R) -> Result<Self, Error>
pub fn to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
pub fn append_dummy_record(&mut self, text: &mut Vec<u32>)
pub fn translate(&mut self, clue: Clue, text: &mut Vec<u32>)
pub fn reverse_translate(&self, text: &[u32]) -> Option<Value>
pub fn translate_query(&self, query: &Query) -> Vec<Vec<u32>>
pub fn reverse_translate_query(&self, text: &[u32]) -> Option<Value>
pub fn iter(&self) -> impl Iterator<Item = (&str, u32)>
pub fn markers(&self) -> impl Iterator<Item = (u32, u32)>
Trait Implementations§
Source§impl Debug for SymbolTable
impl Debug for SymbolTable
Auto Trait Implementations§
impl Freeze for SymbolTable
impl RefUnwindSafe for SymbolTable
impl Send for SymbolTable
impl Sync for SymbolTable
impl Unpin for SymbolTable
impl UnwindSafe for SymbolTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more