Enum lay_rs::prelude::taffy::AbstractAxis
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§
§impl AbstractAxis
impl AbstractAxis
pub fn other(&self) -> AbstractAxis
pub fn other(&self) -> AbstractAxis
Returns the other variant of the enum
pub 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§
§impl Clone for AbstractAxis
impl Clone for AbstractAxis
§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 more§impl Debug for AbstractAxis
impl Debug for AbstractAxis
§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
)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.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more