PositioningUtilities

Trait PositioningUtilities 

Source
pub trait PositioningUtilities {
    // Required methods
    fn top(self, value: SpacingValue) -> Self;
    fn right(self, value: SpacingValue) -> Self;
    fn bottom(self, value: SpacingValue) -> Self;
    fn left(self, value: SpacingValue) -> Self;
    fn inset(self, value: SpacingValue) -> Self;
    fn inset_x(self, value: SpacingValue) -> Self;
    fn inset_y(self, value: SpacingValue) -> Self;
}
Expand description

Trait for adding positioning utilities to a class builder

Required Methods§

Source

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

Add top positioning

Source

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

Add right positioning

Source

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

Add bottom positioning

Source

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

Add left positioning

Source

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

Add inset positioning (all sides)

Source

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

Add horizontal inset positioning

Source

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

Add vertical inset positioning

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§