Struct re_string_interner::StringInterner
source · pub(crate) struct StringInterner {
pub(crate) map: IntMap<u64, &'static str>,
}
Fields§
§map: IntMap<u64, &'static str>
Implementations§
source§impl StringInterner
impl StringInterner
pub fn len(&self) -> usize
pub fn intern(&mut self, string: &str) -> InternedString
pub fn bytes_used(&self) -> usize
Trait Implementations§
source§impl Default for StringInterner
impl Default for StringInterner
source§fn default() -> StringInterner
fn default() -> StringInterner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StringInterner
impl RefUnwindSafe for StringInterner
impl Send for StringInterner
impl Sync for StringInterner
impl Unpin for StringInterner
impl UnwindSafe for StringInterner
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