pub struct GenericPattern { /* private fields */ }
Expand description
A fully-owned, non-zero-copy type corresponding to GenericPattern
.
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Trait Implementations§
Source§impl Debug for GenericPattern
impl Debug for GenericPattern
Source§impl From<&GenericPattern<'_>> for GenericPattern
impl From<&GenericPattern<'_>> for GenericPattern
Source§fn from(input: &GenericPattern<'_>) -> Self
fn from(input: &GenericPattern<'_>) -> Self
Converts to this type from the input type.
Source§impl From<&GenericPattern> for GenericPattern<'_>
impl From<&GenericPattern> for GenericPattern<'_>
Source§fn from(input: &GenericPattern) -> Self
fn from(input: &GenericPattern) -> Self
Converts to this type from the input type.
Source§impl From<Vec<GenericPatternItem>> for GenericPattern
impl From<Vec<GenericPatternItem>> for GenericPattern
Source§fn from(items: Vec<GenericPatternItem>) -> Self
fn from(items: Vec<GenericPatternItem>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenericPattern
impl RefUnwindSafe for GenericPattern
impl Send for GenericPattern
impl Sync for GenericPattern
impl Unpin for GenericPattern
impl UnwindSafe for GenericPattern
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more