[][src]Enum sticker_encoders::layer::Layer

pub enum Layer {
    UPos,
    XPos,
    Feature {
        feature: String,
        default: Option<String>,
    },
    FeatureString,
    Misc {
        feature: String,
        default: Option<String>,
    },
}

Tagging layer.

Variants

UPos
XPos
Feature

A specific morphologic feature.

Fields of Feature

feature: Stringdefault: Option<String>
FeatureString

All morphological features represented as a string.

Misc

Fields of Misc

feature: Stringdefault: Option<String>

Methods

impl Layer[src]

pub fn feature(feature: String, default: Option<String>) -> Self[src]

Construct a feature layer.

pub fn misc(feature: String, default: Option<String>) -> Self[src]

Construct a miscellaneous feature layer.

Trait Implementations

impl Clone for Layer[src]

impl Debug for Layer[src]

impl<'de> Deserialize<'de> for Layer[src]

impl Eq for Layer[src]

impl PartialEq<Layer> for Layer[src]

impl Serialize for Layer[src]

impl StructuralEq for Layer[src]

impl StructuralPartialEq for Layer[src]

Auto Trait Implementations

impl RefUnwindSafe for Layer

impl Send for Layer

impl Sync for Layer

impl Unpin for Layer

impl UnwindSafe for Layer

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.