StretchDir

Trait StretchDir 

Source
pub trait StretchDir: Direction {
    const STRETCH: bool;
}
Expand description

Direction and stretch of a layout.

Required Associated Constants§

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§

Source§

impl StretchDir for X

Source§

const STRETCH: bool = false

Source§

impl StretchDir for Y

Source§

const STRETCH: bool = false

Source§

impl<T> StretchDir for Stretch<T>
where T: Direction,

Source§

const STRETCH: bool = true

Source§

impl<T> StretchDir for Rev<T>
where T: StretchDir,

Source§

const STRETCH: bool = T::STRETCH