GapUtilities

Trait GapUtilities 

Source
pub trait GapUtilities {
    // Required methods
    fn gap(self, value: SpacingValue) -> Self;
    fn gap_x(self, value: SpacingValue) -> Self;
    fn gap_y(self, value: SpacingValue) -> Self;
}
Expand description

Trait for adding gap utilities to a class builder

Required Methods§

Source

fn gap(self, value: SpacingValue) -> Self

Add gap between grid/flex items

Source

fn gap_x(self, value: SpacingValue) -> Self

Add horizontal gap between grid/flex items

Source

fn gap_y(self, value: SpacingValue) -> Self

Add vertical gap between grid/flex items

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§