Trait layout_engine::LayoutExt
source · pub trait LayoutExt: Layout {
// Provided method
fn sub_for_prim(
&self,
prim: usize,
orientation: Orientation
) -> MinimumNatural<usize> { ... }
}Provided Methods§
sourcefn sub_for_prim(
&self,
prim: usize,
orientation: Orientation
) -> MinimumNatural<usize>
fn sub_for_prim( &self, prim: usize, orientation: Orientation ) -> MinimumNatural<usize>
Gets the sub direction from the primary direction given the orientation
That means if:
Orientation::Horizontalthis acts likeLayout::height_for_widthOrientation::Verticalthis acts likeLayout::width_for_height