pub enum Axis {
Horizontal,
Vertical,
}Expand description
A direction such as Horizontal or Vertical
Variants§
Implementations§
Source§impl Axis
impl Axis
pub fn main<T>(&self, value: impl Into<(T, T)>) -> T
pub fn cross<V>(&self, value: impl Into<(V, V)>) -> V
pub fn pack<T, R>(&self, main: T, cross: T) -> R
pub fn unpack<T>(&self, value: impl Into<(T, T)>) -> (T, T)
pub const fn is_vertical(&self) -> bool
pub const fn is_horizontal(&self) -> bool
Trait Implementations§
Source§impl Ord for Axis
impl Ord for Axis
Source§impl PartialOrd for Axis
impl PartialOrd for Axis
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 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