VarLayout

Trait VarLayout 

Source
pub trait VarLayout<T: VarValue> {
    // Required methods
    fn layout(&self) -> T::Px
       where T: Layout2d;
    fn layout_dft(&self, default: T::Px) -> T::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.

Required Methods§

Source

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

Compute the pixel value in the current LAYOUT context.

Source

fn layout_dft(&self, default: T::Px) -> T::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.

Implementations on Foreign Types§

Source§

impl<T: VarValue> VarLayout<T> for Var<T>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§