Enum savory_style::text::TextShadow[][src]

pub enum TextShadow {
    One(Shadow),
    Multiple(Vec<Shadow>),
    Initial(Initial),
    Inherit(Inherit),
    None(None),
    Unset(Unset),
}

Variants

One(Shadow)
Multiple(Vec<Shadow>)
Initial(Initial)
Inherit(Inherit)
None(None)
Unset(Unset)

Implementations

impl TextShadow[src]

pub fn new() -> Self[src]

pub fn x(self, val: impl Into<Length>) -> Self[src]

pub fn y(self, val: impl Into<Length>) -> Self[src]

pub fn blur(self, val: impl Into<Length>) -> Self[src]

pub fn try_blur(self, val: Option<impl Into<Length>>) -> Self[src]

pub fn color(self, val: impl Into<Color>) -> Self[src]

pub fn try_color(self, val: Option<impl Into<Color>>) -> Self[src]

pub fn add(self, get_val: impl FnOnce(Shadow) -> Shadow) -> Self[src]

Trait Implementations

impl Clone for TextShadow[src]

impl Debug for TextShadow[src]

impl Default for TextShadow[src]

impl From<Inherit> for TextShadow[src]

impl From<Initial> for TextShadow[src]

impl From<None> for TextShadow[src]

impl From<Shadow> for TextShadow[src]

impl From<Unset> for TextShadow[src]

impl From<Vec<Shadow, Global>> for TextShadow[src]

impl PartialEq<TextShadow> for TextShadow[src]

impl StructuralPartialEq for TextShadow[src]

impl UpdateStyleValues for TextShadow[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[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.

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