pub struct StaticHashedNameTable { /* private fields */ }Implementations§
Source§impl StaticHashedNameTable
impl StaticHashedNameTable
pub fn new( names_: &'static str, name_offsets_: &'static [usize], hash_idxes_: &'static [(u64, usize)], ) -> Self
pub fn new_upon<ParentTableType: 'static + NameTable>( names_: &'static str, name_offsets_: &'static [usize], hash_idxes_: &'static [(u64, usize)], parent: ParentTableType, ) -> Self
pub fn index<'x, T: NameTableIdx>(&'x self, idx: T) -> &'x str
Trait Implementations§
Source§impl<T: NameTableIdx> Index<T> for StaticHashedNameTable
impl<T: NameTableIdx> Index<T> for StaticHashedNameTable
Source§impl NameTable for StaticHashedNameTable
impl NameTable for StaticHashedNameTable
fn initial_local(&self) -> usize
fn len_local(&self) -> usize
fn at_local<'a>(&'a self, idx: usize) -> &'a str
fn parent<'a>(&'a self) -> Option<&'a dyn NameTable>
fn find_local(&self, name: &str) -> Option<usize>
fn len(&self) -> usize
fn at<'a>(&'a self, idx: usize) -> &'a str
fn find(&self, name: &str) -> Option<usize>
Auto Trait Implementations§
impl !RefUnwindSafe for StaticHashedNameTable
impl !Send for StaticHashedNameTable
impl !Sync for StaticHashedNameTable
impl !UnwindSafe for StaticHashedNameTable
impl Freeze for StaticHashedNameTable
impl Unpin for StaticHashedNameTable
impl UnsafeUnpin for StaticHashedNameTable
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