pub struct InternerEntry(/* private fields */);Expand description
A hook into a global string interner.
Implementations§
Source§impl InternerEntry
impl InternerEntry
Sourcepub fn get(string: &[u8]) -> Option<InternerEntry>
pub fn get(string: &[u8]) -> Option<InternerEntry>
Gets the entry corresponding to a string if it exists.
Sourcepub fn get_or_intern(string: &[u8]) -> InternerEntry
pub fn get_or_intern(string: &[u8]) -> InternerEntry
Gets the entry corresponding to a string, or interns it and returns the new entry.
Trait Implementations§
Source§impl Clone for InternerEntry
impl Clone for InternerEntry
impl Copy for InternerEntry
Source§impl Debug for InternerEntry
impl Debug for InternerEntry
Source§impl Display for InternerEntry
impl Display for InternerEntry
impl Eq for InternerEntry
Source§impl From<&[u8]> for InternerEntry
impl From<&[u8]> for InternerEntry
Source§impl From<&str> for InternerEntry
impl From<&str> for InternerEntry
Source§impl Hash for InternerEntry
impl Hash for InternerEntry
Source§impl PartialEq for InternerEntry
impl PartialEq for InternerEntry
impl StructuralPartialEq for InternerEntry
Auto Trait Implementations§
impl Freeze for InternerEntry
impl RefUnwindSafe for InternerEntry
impl Send for InternerEntry
impl Sync for InternerEntry
impl Unpin for InternerEntry
impl UnsafeUnpin for InternerEntry
impl UnwindSafe for InternerEntry
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