pub struct PicoStr(/* private fields */);
Expand description
An interned string.
The API is purposefully kept small. This is because it might be relatively
slow to look up a string in the interner, so we want to avoid doing it
unnecessarily. For this reason, the user should use the PicoStr::resolve
method to get the underlying string, such that the lookup is done only once.
Implementations§
Trait Implementations§
source§impl Ord for PicoStr
impl Ord for PicoStr
source§impl PartialOrd for PicoStr
impl PartialOrd for PicoStr
impl Copy for PicoStr
impl Eq for PicoStr
impl StructuralPartialEq for PicoStr
Auto Trait Implementations§
impl Freeze for PicoStr
impl RefUnwindSafe for PicoStr
impl Send for PicoStr
impl Sync for PicoStr
impl Unpin for PicoStr
impl UnwindSafe for PicoStr
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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