[−][src]Enum feattle::StringFormatKind
An exact and machine-readable description of a feattle string-type
Variants
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]
fn clone(&self) -> StringFormatKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StringFormatKind
[src]
impl Eq for StringFormatKind
[src]
impl PartialEq<StringFormatKind> for StringFormatKind
[src]
fn eq(&self, other: &StringFormatKind) -> bool
[src]
fn ne(&self, other: &StringFormatKind) -> bool
[src]
impl Serialize for StringFormatKind
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for StringFormatKind
[src]
impl StructuralPartialEq for StringFormatKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for StringFormatKind
impl Send for StringFormatKind
impl Sync for StringFormatKind
impl Unpin for StringFormatKind
impl UnwindSafe for StringFormatKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,