pub enum Axis {
Horizontal,
Vertical,
}Expand description
Main layout axis of a container.
Variants§
Implementations§
Source§impl Axis
impl Axis
Sourcepub const fn is_horizontal(self) -> bool
pub const fn is_horizontal(self) -> bool
Returns true for Axis::Horizontal.
Sourcepub const fn is_vertical(self) -> bool
pub const fn is_vertical(self) -> bool
Returns true for Axis::Vertical.
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnsafeUnpin for Axis
impl UnwindSafe for Axis
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