pub struct CachedStringBlock { /* private fields */ }Expand description
A cached string block for efficient string lookups
Implementations§
Source§impl CachedStringBlock
impl CachedStringBlock
Sourcepub fn from_string_block(string_block: &StringBlock) -> Self
pub fn from_string_block(string_block: &StringBlock) -> Self
Create a cached string block from a string block
Sourcepub fn get_string(&self, string_ref: StringRef) -> Result<&str>
pub fn get_string(&self, string_ref: StringRef) -> Result<&str>
Get a string from the string block using a string reference
Trait Implementations§
Source§impl Clone for CachedStringBlock
impl Clone for CachedStringBlock
Source§fn clone(&self) -> CachedStringBlock
fn clone(&self) -> CachedStringBlock
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 moreAuto Trait Implementations§
impl Freeze for CachedStringBlock
impl RefUnwindSafe for CachedStringBlock
impl Send for CachedStringBlock
impl Sync for CachedStringBlock
impl Unpin for CachedStringBlock
impl UnwindSafe for CachedStringBlock
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