[][src]Struct savory_elements::view::modifier::Modifier

pub struct Modifier<'a, Msg> {
    pub padding: Option<Padding>,
    pub margin: Option<Margin>,
    pub size: Option<Size>,
    pub font: Option<Font>,
    pub border: Option<Border>,
    pub position: Option<Position>,
    pub opacity: Option<Opacity>,
    pub target: &'a dyn View<Node<Msg>>,
}

Fields

padding: Option<Padding>margin: Option<Margin>size: Option<Size>font: Option<Font>border: Option<Border>position: Option<Position>opacity: Option<Opacity>target: &'a dyn View<Node<Msg>>

Implementations

impl<'a, Msg> Modifier<'a, Msg>[src]

pub fn padding(self, value: impl Into<Padding>) -> Self[src]

pub fn and_padding(self, set_value: impl Fn(Padding) -> Padding) -> Self where
    Padding: Default
[src]

pub fn margin(self, value: impl Into<Margin>) -> Self[src]

pub fn and_margin(self, set_value: impl Fn(Margin) -> Margin) -> Self where
    Margin: Default
[src]

pub fn size(self, value: impl Into<Size>) -> Self[src]

pub fn and_size(self, set_value: impl Fn(Size) -> Size) -> Self where
    Size: Default
[src]

pub fn font(self, value: impl Into<Font>) -> Self[src]

pub fn and_font(self, set_value: impl Fn(Font) -> Font) -> Self where
    Font: Default
[src]

pub fn border(self, value: impl Into<Border>) -> Self[src]

pub fn and_border(self, set_value: impl Fn(Border) -> Border) -> Self where
    Border: Default
[src]

pub fn position(self, value: impl Into<Position>) -> Self[src]

pub fn and_position(self, set_value: impl Fn(Position) -> Position) -> Self where
    Position: Default
[src]

pub fn opacity(self, value: impl Into<Opacity>) -> Self[src]

pub fn try_opacity(self, value: Option<impl Into<Opacity>>) -> Self[src]

impl<'a, Msg> Modifier<'a, Msg>[src]

pub fn on(target: &'a dyn View<Node<Msg>>) -> Self[src]

Trait Implementations

impl<'a, Msg> View<Node<Msg>> for Modifier<'a, Msg>[src]

Auto Trait Implementations

impl<'a, Msg> !RefUnwindSafe for Modifier<'a, Msg>

impl<'a, Msg> !Send for Modifier<'a, Msg>

impl<'a, Msg> !Sync for Modifier<'a, Msg>

impl<'a, Msg> Unpin for Modifier<'a, Msg>

impl<'a, Msg> !UnwindSafe for Modifier<'a, Msg>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[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> From<T> for T[src]

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

impl<'a, Msg, T> NodeModifier<'a, Msg> for T where
    T: View<Node<Msg>>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

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>,