Enum savory_style::gap::Gap[][src]

pub enum Gap {
    Value(LengthPercent),
    RowColumn(LengthPercentLengthPercent),
}
use savory_style::{Style, unit::{px, em}};

Style::default()
    .gap(px(2))
    // this can take percent value too (.e.g 40%).
    .gap(0.4)
    // and can take row and column each with different value
    .gap((em(4.), em(8.)));

Variants

Trait Implementations

impl Clone for Gap[src]

impl Debug for Gap[src]

impl Display for Gap[src]

impl<T1, T2> From<(T1, T2)> for Gap where
    T1: Into<LengthPercent>,
    T2: Into<LengthPercent>, 
[src]

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

impl PartialEq<Gap> for Gap[src]

impl StructuralPartialEq for Gap[src]

impl UpdateStyleValues for Gap[src]

Auto Trait Implementations

impl RefUnwindSafe for Gap

impl Send for Gap

impl Sync for Gap

impl Unpin for Gap

impl UnwindSafe for Gap

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> ToString for T where
    T: Display + ?Sized
[src]

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