Enum taffy::geometry::AbstractAxis
source · pub enum AbstractAxis {
Inline,
Block,
}
Expand description
The CSS abstract axis https://www.w3.org/TR/css-writing-modes-3/#abstract-axes
Variants§
Inline
The axis in the inline dimension, i.e. the horizontal axis in horizontal writing modes and the vertical axis in vertical writing modes.
Block
The axis in the block dimension, i.e. the vertical axis in horizontal writing modes and the horizontal axis in vertical writing modes.
Implementations§
source§impl AbstractAxis
impl AbstractAxis
sourcepub fn other(&self) -> AbstractAxis
pub fn other(&self) -> AbstractAxis
Returns the other variant of the enum
sourcepub fn as_abs_naive(&self) -> AbsoluteAxis
pub fn as_abs_naive(&self) -> AbsoluteAxis
Convert an AbstractAxis
into an AbsoluteAxis
naively assuming that the Inline axis is Horizontal
This is currently always true, but will change if Taffy ever implements the writing_mode
property
Trait Implementations§
source§impl Clone for AbstractAxis
impl Clone for AbstractAxis
source§fn clone(&self) -> AbstractAxis
fn clone(&self) -> AbstractAxis
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AbstractAxis
impl Debug for AbstractAxis
source§impl PartialEq for AbstractAxis
impl PartialEq for AbstractAxis
impl Copy for AbstractAxis
impl Eq for AbstractAxis
impl StructuralPartialEq for AbstractAxis
Auto Trait Implementations§
impl Freeze for AbstractAxis
impl RefUnwindSafe for AbstractAxis
impl Send for AbstractAxis
impl Sync for AbstractAxis
impl Unpin for AbstractAxis
impl UnwindSafe for AbstractAxis
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)