pub enum Axis {
Horizontal,
Vertical,
}
Expand description
Direction for Flex.
Variants§
Implementations§
Source§impl Axis
impl Axis
Sourcepub fn cross_span(&self, size: &Size) -> Coord
pub fn cross_span(&self, size: &Size) -> Coord
For a size, return the component across the axis.
Sourcepub fn cross_position(&self, pos: &Point) -> Coord
pub fn cross_position(&self, pos: &Point) -> Coord
For a point, return the component across the axis.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin 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