Struct measureme::stringtable::StringTableBuilder
source · [−]pub struct StringTableBuilder { /* private fields */ }
Expand description
Write-only version of the string table
Implementations
sourceimpl StringTableBuilder
impl StringTableBuilder
pub fn new(
data_sink: Arc<SerializationSink>,
index_sink: Arc<SerializationSink>
) -> Result<StringTableBuilder, Box<dyn Error + Send + Sync>>
sourcepub fn map_virtual_to_concrete_string(
&self,
virtual_id: StringId,
concrete_id: StringId
)
pub fn map_virtual_to_concrete_string(
&self,
virtual_id: StringId,
concrete_id: StringId
)
Creates a mapping so that virtual_id
will resolve to the contents of
concrete_id
when reading the string table.
pub fn bulk_map_virtual_to_single_concrete_string<I>(
&self,
virtual_ids: I,
concrete_id: StringId
) where
I: Iterator<Item = StringId> + ExactSizeIterator,
pub fn alloc_metadata<STR: SerializableString + ?Sized>(&self, s: &STR)
pub fn alloc<STR: SerializableString + ?Sized>(&self, s: &STR) -> StringId
Auto Trait Implementations
impl !RefUnwindSafe for StringTableBuilder
impl Send for StringTableBuilder
impl Sync for StringTableBuilder
impl Unpin for StringTableBuilder
impl !UnwindSafe for StringTableBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more