pub struct CiString(/* private fields */);Expand description
A case-insensitive string that preserves the original case.
This type stores a string in its original case but implements case-insensitive equality and hashing, making it suitable for use as a key in hash maps that should be case-preserving but wherein case-insensitive lookups are desired.
Implementations§
Trait Implementations§
impl Eq for CiString
Auto Trait Implementations§
impl Freeze for CiString
impl RefUnwindSafe for CiString
impl Send for CiString
impl Sync for CiString
impl Unpin for CiString
impl UnwindSafe for CiString
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.