[][src]Enum feattle::StringFormatKind

pub enum StringFormatKind {
    Any,
    Pattern(&'static str),
    Choices(&'static [&'static str]),
}

An exact and machine-readable description of a feattle string-type

Variants

Any

Accepts any possible string.

Pattern(&'static str)

The string must conform to the pattern, described using JavaScript's RegExp syntax in 'u' (Unicode) mode. The matching is done against the entire value, not just any subset, as if a ^(?: was implied at the start of the pattern and a )$ at the end.

Choices(&'static [&'static str])

Only one of the listed values is accepted.

Trait Implementations

impl Clone for StringFormatKind[src]

impl Debug for StringFormatKind[src]

impl Eq for StringFormatKind[src]

impl PartialEq<StringFormatKind> for StringFormatKind[src]

impl Serialize for StringFormatKind[src]

impl StructuralEq for StringFormatKind[src]

impl StructuralPartialEq for StringFormatKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.