Struct accessibility_tree::style::values::Length
source · #[repr(transparent)]pub struct Length {
pub px: f32,
}
Fields§
§px: f32
Implementations§
Trait Implementations§
source§impl AddAssign for Length
impl AddAssign for Length
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl From<Length> for LengthOrAuto
impl From<Length> for LengthOrAuto
source§impl From<Length> for LengthOrPercentage
impl From<Length> for LengthOrPercentage
source§impl From<Length> for LengthOrPercentageOrAuto
impl From<Length> for LengthOrPercentageOrAuto
source§impl From<Length> for SpecifiedLength
impl From<Length> for SpecifiedLength
source§impl FromSpecified for Length
impl FromSpecified for Length
fn from_specified(s: &SpecifiedLength, context: &CascadeContext<'_>) -> Self
source§impl Mul<Percentage> for Length
impl Mul<Percentage> for Length
source§impl PartialEq for Length
impl PartialEq for Length
source§impl PartialOrd for Length
impl PartialOrd for Length
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SpecifiedValue for Length
impl SpecifiedValue for Length
type SpecifiedValue = SpecifiedLength
source§impl SubAssign for Length
impl SubAssign for Length
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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