pub enum Utf8Pattern<'a> {
StringPattern(&'a [u8]),
CharPattern(char),
}
🔬This is a nightly-only experimental API. (
pattern
#27721)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
#27721)Type returned by String and str types.
CharPattern(char)
🔬This is a nightly-only experimental API. (
pattern
#27721)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.36.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