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ยง
ยงimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
ยงtype ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
ยงfn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
ยง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.ยง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<T> LayoutRaw for T
impl<T> LayoutRaw for T
ยงfn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
ยงimpl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
ยงimpl<T> Pointee for T
impl<T> Pointee for T
Sourceยงimpl<T> Upcastable for T
impl<T> Upcastable for T
Sourceยงfn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Sourceยงfn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref