pub struct StringTable { /* private fields */ }Expand description
Shared string table that deduplicates edge type labels across the file.
Implementations§
Source§impl StringTable
impl StringTable
pub fn compression_metrics(&self) -> CompressionMetrics
pub fn validate(&self) -> NativeResult<()>
Source§impl StringTable
impl StringTable
pub fn serialize(&self) -> Vec<u8> ⓘ
pub fn deserialize(bytes: &[u8]) -> NativeResult<Self>
pub fn serialized_size(&self) -> usize
Source§impl StringTable
impl StringTable
pub fn new() -> Self
pub fn get_or_add_offset(&mut self, string: &str) -> NativeResult<u16>
pub fn get_string(&self, offset: u16) -> NativeResult<&str>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn rebuild_common_type_cache(&mut self)
Trait Implementations§
Source§impl Clone for StringTable
impl Clone for StringTable
Source§fn clone(&self) -> StringTable
fn clone(&self) -> StringTable
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 StringTable
impl RefUnwindSafe for StringTable
impl Send for StringTable
impl Sync for StringTable
impl Unpin for StringTable
impl UnwindSafe for StringTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more