[][src]Enum meli::conf::themes::ThemeValue

enum ThemeValue<T: ThemeLink> {
    Value(T),
    Alias(Cow<'static, str>),
    Link(Cow<'static, str>, T::LinkType),
}

Holds either an actual value or refers to the key name of the attribute that holds the value.

Variants

Value(T)
Alias(Cow<'static, str>)

Trait Implementations

impl<T: Clone + ThemeLink> Clone for ThemeValue<T> where
    T::LinkType: Clone
[src]

impl<T: Debug + ThemeLink> Debug for ThemeValue<T> where
    T::LinkType: Debug
[src]

impl Default for ThemeValue<Color>[src]

impl Default for ThemeValue<Attr>[src]

impl<'de> Deserialize<'de> for ThemeValue<Attr>[src]

impl<'de> Deserialize<'de> for ThemeValue<Color>[src]

impl From<&'static str> for ThemeValue<Color>[src]

impl From<&'static str> for ThemeValue<Attr>[src]

impl From<Attr> for ThemeValue<Attr>[src]

impl From<Color> for ThemeValue<Color>[src]

impl Serialize for ThemeValue<Attr>[src]

impl Serialize for ThemeValue<Color>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ThemeValue<T> where
    T: RefUnwindSafe,
    <T as ThemeLink>::LinkType: RefUnwindSafe

impl<T> Send for ThemeValue<T> where
    T: Send,
    <T as ThemeLink>::LinkType: Send

impl<T> Sync for ThemeValue<T> where
    T: Sync,
    <T as ThemeLink>::LinkType: Sync

impl<T> Unpin for ThemeValue<T> where
    T: Unpin,
    <T as ThemeLink>::LinkType: Unpin

impl<T> UnwindSafe for ThemeValue<T> where
    T: UnwindSafe,
    <T as ThemeLink>::LinkType: UnwindSafe

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<T> From<T> for T[src]

impl<T> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]