pub struct StringTables { /* private fields */ }Expand description
String tables container.
Implementations§
Source§impl StringTables
impl StringTables
Sourcepub fn iter(&self) -> impl Iterator<Item = &StringTable>
pub fn iter(&self) -> impl Iterator<Item = &StringTable>
Iterator over all string tables.
Sourcepub fn get_by_id(&self, id: usize) -> Result<&StringTable, StringTableError>
pub fn get_by_id(&self, id: usize) -> Result<&StringTable, StringTableError>
Returns StringTable for given id.
Sourcepub fn get_by_name(&self, name: &str) -> Result<&StringTable, StringTableError>
pub fn get_by_name(&self, name: &str) -> Result<&StringTable, StringTableError>
Returns StringTable for given name.
Trait Implementations§
Source§impl Clone for StringTables
impl Clone for StringTables
Source§fn clone(&self) -> StringTables
fn clone(&self) -> StringTables
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StringTables
impl Default for StringTables
Source§fn default() -> StringTables
fn default() -> StringTables
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StringTables
impl !RefUnwindSafe for StringTables
impl !Send for StringTables
impl !Sync for StringTables
impl Unpin for StringTables
impl UnwindSafe for StringTables
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