Trait zng::var::VarLayout

source ·
pub trait VarLayout<T>: Var<T>
where T: VarValue,
{ // Provided methods fn layout(&self) -> <T as Layout2d>::Px where T: Layout2d { ... } fn layout_dft(&self, default: <T as Layout2d>::Px) -> <T as Layout2d>::Px where T: Layout2d { ... } fn layout_x(&self) -> Px where T: Layout1d { ... } fn layout_y(&self) -> Px where T: Layout1d { ... } fn layout_z(&self) -> Px where T: Layout1d { ... } fn layout_dft_x(&self, default: Px) -> Px where T: Layout1d { ... } fn layout_dft_y(&self, default: Px) -> Px where T: Layout1d { ... } fn layout_dft_z(&self, default: Px) -> Px where T: Layout1d { ... } }
Expand description

Extension methods to layout var values.

Provided Methods§

source

fn layout(&self) -> <T as Layout2d>::Px
where T: Layout2d,

Compute the pixel value in the current LAYOUT context.

source

fn layout_dft(&self, default: <T as Layout2d>::Px) -> <T as Layout2d>::Px
where T: Layout2d,

Compute the pixel value in the current LAYOUT context with default.

source

fn layout_x(&self) -> Px
where T: Layout1d,

Compute the pixel value in the current LAYOUT context x axis.

source

fn layout_y(&self) -> Px
where T: Layout1d,

Compute the pixel value in the current LAYOUT context y axis.

source

fn layout_z(&self) -> Px
where T: Layout1d,

Compute the pixel value in the current LAYOUT context z axis.

source

fn layout_dft_x(&self, default: Px) -> Px
where T: Layout1d,

Compute the pixel value in the current LAYOUT context x axis with default.

source

fn layout_dft_y(&self, default: Px) -> Px
where T: Layout1d,

Compute the pixel value in the current LAYOUT context y axis with default.

source

fn layout_dft_z(&self, default: Px) -> Px
where T: Layout1d,

Compute the pixel value in the current LAYOUT context z axis with default.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, V> VarLayout<T> for V
where T: VarValue, V: Var<T>,