Struct icu::datetime::provider::pattern::reference::GenericPattern

source ยท
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

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
sourceยง

impl From<&GenericPattern<'_>> for GenericPattern

sourceยง

fn from(input: &GenericPattern<'_>) -> GenericPattern

Converts to this type from the input type.
sourceยง

impl From<&GenericPattern> for GenericPattern<'_>

sourceยง

fn from(input: &GenericPattern) -> GenericPattern<'_>

Converts to this type from the input type.
sourceยง

impl From<Vec<GenericPatternItem>> for GenericPattern

sourceยง

fn from(items: Vec<GenericPatternItem>) -> GenericPattern

Converts to this type from the input type.
sourceยง

impl FromStr for GenericPattern

sourceยง

type Err = PatternError

The associated error which can be returned from parsing.
sourceยง

fn from_str(s: &str) -> Result<GenericPattern, <GenericPattern as FromStr>::Err>

Parses a string s to return a value of this type. Read more

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> IntoEither for T

sourceยง

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 more
sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
sourceยง

impl<T> ErasedDestructor for T
where T: 'static,

sourceยง

impl<T> MaybeSendSync for T
where T: Send + Sync,