pub enum Utf8Pattern<'a> {
StringPattern(&'a [u8]),
CharPattern(char),
}
🔬This is a nightly-only experimental API. (
pattern
)Expand description
Result of calling Pattern::as_utf8_pattern()
.
Can be used for inspecting the contents of a Pattern
in cases
where the underlying representation can be represented as UTF-8.
Variants§
StringPattern(&'a [u8])
🔬This is a nightly-only experimental API. (
pattern
)Type returned by String and str types.
CharPattern(char)
🔬This is a nightly-only experimental API. (
pattern
)Type returned by char types.
Trait Implementations§
source§impl<'a> Clone for Utf8Pattern<'a>
impl<'a> Clone for Utf8Pattern<'a>
source§fn clone(&self) -> Utf8Pattern<'a>
fn clone(&self) -> Utf8Pattern<'a>
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<'a> Debug for Utf8Pattern<'a>
impl<'a> Debug for Utf8Pattern<'a>
source§impl<'a> PartialEq for Utf8Pattern<'a>
impl<'a> PartialEq for Utf8Pattern<'a>
impl<'a> Copy for Utf8Pattern<'a>
impl<'a> Eq for Utf8Pattern<'a>
impl<'a> StructuralPartialEq for Utf8Pattern<'a>
Auto Trait Implementations§
impl<'a> Freeze for Utf8Pattern<'a>
impl<'a> RefUnwindSafe for Utf8Pattern<'a>
impl<'a> Send for Utf8Pattern<'a>
impl<'a> Sync for Utf8Pattern<'a>
impl<'a> Unpin for Utf8Pattern<'a>
impl<'a> UnwindSafe for Utf8Pattern<'a>
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.