pub struct BytecodeStringTable<'strings> { /* private fields */ }Implementations§
Source§impl<'strings> BytecodeStringTable<'strings>
impl<'strings> BytecodeStringTable<'strings>
pub fn new(strings: impl Into<Vec<Cow<'strings, [u8]>>>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&[u8]>
pub fn iter(&self) -> impl Iterator<Item = &[u8]> + '_
pub fn get_id(&self, id: u32) -> Result<Option<&[u8]>, BytecodeReadError>
Trait Implementations§
Source§impl<'strings> Clone for BytecodeStringTable<'strings>
impl<'strings> Clone for BytecodeStringTable<'strings>
Source§fn clone(&self) -> BytecodeStringTable<'strings>
fn clone(&self) -> BytecodeStringTable<'strings>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'strings> Debug for BytecodeStringTable<'strings>
impl<'strings> Debug for BytecodeStringTable<'strings>
Source§impl<'strings> Default for BytecodeStringTable<'strings>
impl<'strings> Default for BytecodeStringTable<'strings>
Source§fn default() -> BytecodeStringTable<'strings>
fn default() -> BytecodeStringTable<'strings>
Returns the “default value” for a type. Read more
impl<'strings> Eq for BytecodeStringTable<'strings>
Source§impl<'strings> PartialEq for BytecodeStringTable<'strings>
impl<'strings> PartialEq for BytecodeStringTable<'strings>
impl<'strings> StructuralPartialEq for BytecodeStringTable<'strings>
Auto Trait Implementations§
impl<'strings> Freeze for BytecodeStringTable<'strings>
impl<'strings> RefUnwindSafe for BytecodeStringTable<'strings>
impl<'strings> Send for BytecodeStringTable<'strings>
impl<'strings> Sync for BytecodeStringTable<'strings>
impl<'strings> Unpin for BytecodeStringTable<'strings>
impl<'strings> UnsafeUnpin for BytecodeStringTable<'strings>
impl<'strings> UnwindSafe for BytecodeStringTable<'strings>
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