Enum dictgen::InsensitiveStr
source · pub enum InsensitiveStr<'s> {
Unicode(&'s str),
Ascii(&'s str),
}
Expand description
UniCase
look-alike that avoids const-fn so large tables don’t OOM
Variants§
Implementations§
source§impl<'s> InsensitiveStr<'s>
impl<'s> InsensitiveStr<'s>
Trait Implementations§
source§impl<'s> Clone for InsensitiveStr<'s>
impl<'s> Clone for InsensitiveStr<'s>
source§fn clone(&self) -> InsensitiveStr<'s>
fn clone(&self) -> InsensitiveStr<'s>
Returns a copy 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<'s> Debug for InsensitiveStr<'s>
impl<'s> Debug for InsensitiveStr<'s>
source§impl<'s> Display for InsensitiveStr<'s>
impl<'s> Display for InsensitiveStr<'s>
source§impl<'s> FmtConst for InsensitiveStr<'s>
Available on crate feature map
only.
impl<'s> FmtConst for InsensitiveStr<'s>
Available on crate feature
map
only.source§impl<'s> Hash for InsensitiveStr<'s>
impl<'s> Hash for InsensitiveStr<'s>
source§impl<'s1, 's2> PartialEq<InsensitiveStr<'s2>> for InsensitiveStr<'s1>
impl<'s1, 's2> PartialEq<InsensitiveStr<'s2>> for InsensitiveStr<'s1>
source§fn eq(&self, other: &InsensitiveStr<'s2>) -> bool
fn eq(&self, other: &InsensitiveStr<'s2>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'b, 'a: 'b> PhfBorrow<InsensitiveStr<'b>> for InsensitiveStr<'a>
Available on crate feature map
only.
impl<'b, 'a: 'b> PhfBorrow<InsensitiveStr<'b>> for InsensitiveStr<'a>
Available on crate feature
map
only.source§fn borrow(&self) -> &InsensitiveStr<'b>
fn borrow(&self) -> &InsensitiveStr<'b>
Convert a reference to
self
to a reference to the borrowed type.source§impl<'s> PhfHash for InsensitiveStr<'s>
Available on crate feature map
only.
impl<'s> PhfHash for InsensitiveStr<'s>
Available on crate feature
map
only.impl<'s> Copy for InsensitiveStr<'s>
impl<'s> Eq for InsensitiveStr<'s>
Auto Trait Implementations§
impl<'s> Freeze for InsensitiveStr<'s>
impl<'s> RefUnwindSafe for InsensitiveStr<'s>
impl<'s> Send for InsensitiveStr<'s>
impl<'s> Sync for InsensitiveStr<'s>
impl<'s> Unpin for InsensitiveStr<'s>
impl<'s> UnwindSafe for InsensitiveStr<'s>
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