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§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.