pub enum Axis {
Horizontal,
Vertical,
}Expand description
The two cardinal directions in two dimensions.
The axis is always relative to the current coordinate space. This means, for
example, that a Axis::Horizontal axis might actually be diagonally from
top right to bottom left, due to some local Transform applied to the
scene.
See also:
AxisDirection, which is a directional version of this enum (with values like left and right, rather than just horizontal).TextDirection, which disambiguates between left-to-right horizontal content and right-to-left horizontal content.
Variants§
Horizontal
Left and right.
See also:
TextDirection, which disambiguates between left-to-right horizontal content and right-to-left horizontal content.
Vertical
Up and down.
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Forget for Axis
impl Freeze for Axis
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.