#[non_exhaustive]pub enum RelativeAxis {
Major,
Minor,
}Expand description
A planar axis relative to the dimensions of a node.
If the node is exactly as wide as it is high, Major is Axis::Horizontal and
Minor is Axis::Vertical.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Major
The axis along the larger dimension of the node.
Minor
The axis along the smaller dimension of the node.
Trait Implementations§
Source§impl Clone for RelativeAxis
impl Clone for RelativeAxis
impl Copy for RelativeAxis
Source§impl Debug for RelativeAxis
impl Debug for RelativeAxis
Source§impl<'de> Deserialize<'de> for RelativeAxis
impl<'de> Deserialize<'de> for RelativeAxis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RelativeAxis
Source§impl Hash for RelativeAxis
impl Hash for RelativeAxis
Source§impl PartialEq for RelativeAxis
impl PartialEq for RelativeAxis
Source§impl Serialize for RelativeAxis
impl Serialize for RelativeAxis
impl StructuralPartialEq for RelativeAxis
Auto Trait Implementations§
impl Freeze for RelativeAxis
impl RefUnwindSafe for RelativeAxis
impl Send for RelativeAxis
impl Sync for RelativeAxis
impl Unpin for RelativeAxis
impl UnsafeUnpin for RelativeAxis
impl UnwindSafe for RelativeAxis
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