pub enum Axis {
Horizontal,
Vertical,
}Expand description
An axis in the plane.
Variants§
Implementations§
Source§impl Axis
impl Axis
Sourcepub fn pack_point(self, axis_value: f64, cross_value: f64) -> Point
pub fn pack_point(self, axis_value: f64, cross_value: f64) -> Point
Create a new Point by arranging the given magnitudes.
The axis value is the one matching the axis (e.g. y for Self::Vertical).
The cross value is the other one.
Sourcepub fn pack_size(self, axis_value: f64, cross_value: f64) -> Size
pub fn pack_size(self, axis_value: f64, cross_value: f64) -> Size
Create a new Size by arranging the given magnitudes.
The axis value is the one matching the axis (e.g. height for Self::Vertical).
The cross value is the other one.
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 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