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<'_>) -> GenericPattern
fn from(input: &GenericPattern<'_>) -> GenericPattern
Converts to this type from the input type.
sourceยงimpl From<&GenericPattern> for GenericPattern<'_>
impl From<&GenericPattern> for GenericPattern<'_>
sourceยงfn from(input: &GenericPattern) -> GenericPattern<'_>
fn from(input: &GenericPattern) -> GenericPattern<'_>
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>) -> GenericPattern
fn from(items: Vec<GenericPatternItem>) -> GenericPattern
Converts to this type from the input type.
sourceยงimpl FromStr for GenericPattern
impl FromStr for GenericPattern
sourceยงtype Err = PatternError
type Err = PatternError
The associated error which can be returned from parsing.
sourceยงfn from_str(s: &str) -> Result<GenericPattern, <GenericPattern as FromStr>::Err>
fn from_str(s: &str) -> Result<GenericPattern, <GenericPattern as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreAuto 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