pub struct CaseInsensitive<T>(pub T);Expand description
The wrapper type for a string that is compared case-insensitively.
The inner string is implied to be ASCII.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for CaseInsensitive<T>
impl<T: Clone> Clone for CaseInsensitive<T>
Source§fn clone(&self) -> CaseInsensitive<T>
fn clone(&self) -> CaseInsensitive<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for CaseInsensitive<T>
impl<T: Debug> Debug for CaseInsensitive<T>
Source§impl<T: Default> Default for CaseInsensitive<T>
impl<T: Default> Default for CaseInsensitive<T>
Source§fn default() -> CaseInsensitive<T>
fn default() -> CaseInsensitive<T>
Returns the “default value” for a type. Read more
Source§impl<T> Deref for CaseInsensitive<T>
impl<T> Deref for CaseInsensitive<T>
Source§impl<T> DerefMut for CaseInsensitive<T>
impl<T> DerefMut for CaseInsensitive<T>
Source§impl<T> From<T> for CaseInsensitive<T>
impl<T> From<T> for CaseInsensitive<T>
Source§impl<T: AsRef<[u8]>> Ord for CaseInsensitive<T>
impl<T: AsRef<[u8]>> Ord for CaseInsensitive<T>
Source§impl<T: AsRef<[u8]>> PartialOrd for CaseInsensitive<T>
impl<T: AsRef<[u8]>> PartialOrd for CaseInsensitive<T>
Source§impl<T: Segmentable + AsRef<[u8]>> Segmentable for CaseInsensitive<T>
impl<T: Segmentable + AsRef<[u8]>> Segmentable for CaseInsensitive<T>
impl<T: Copy> Copy for CaseInsensitive<T>
impl<T: AsRef<[u8]>> Eq for CaseInsensitive<T>
Auto Trait Implementations§
impl<T> Freeze for CaseInsensitive<T>where
T: Freeze,
impl<T> RefUnwindSafe for CaseInsensitive<T>where
T: RefUnwindSafe,
impl<T> Send for CaseInsensitive<T>where
T: Send,
impl<T> Sync for CaseInsensitive<T>where
T: Sync,
impl<T> Unpin for CaseInsensitive<T>where
T: Unpin,
impl<T> UnwindSafe for CaseInsensitive<T>where
T: UnwindSafe,
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