#[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 PartialOrd for Length
impl PartialOrd for Length
Source§impl SpecifiedValue for Length
impl SpecifiedValue for Length
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 Freeze for Length
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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