Enum layout_2020::flexbox::geom::FlexAxis
source · pub(super) enum FlexAxis {
Row,
Column,
}
Expand description
One of the two bits set by the flex-direction
property
(The other is “forward” v.s. reverse.)
Variants§
Row
The main axis is the inline axis of the container (not necessarily of flex items!), cross is block.
Column
The main axis is the block axis, cross is inline.
Implementations§
source§impl FlexAxis
impl FlexAxis
pub fn from(flex_direction: FlexDirection) -> Self
pub fn vec2_to_flex_relative<T>( self, flow_relative: LogicalVec2<T>, ) -> FlexRelativeVec2<T>
pub fn vec2_to_flow_relative<T>( self, flex_relative: FlexRelativeVec2<T>, ) -> LogicalVec2<T>
Trait Implementations§
impl Copy for FlexAxis
impl StructuralPartialEq for FlexAxis
Auto Trait Implementations§
impl Freeze for FlexAxis
impl RefUnwindSafe for FlexAxis
impl Send for FlexAxis
impl Sync for FlexAxis
impl Unpin for FlexAxis
impl UnwindSafe for FlexAxis
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert