pub enum ParsedLength {
Px(f32),
Percent(f32),
Em(f32),
Rem(f32),
Vw(f32),
Vh(f32),
Fr(f32),
Auto,
}Variants§
Implementations§
Source§impl ParsedLength
impl ParsedLength
pub fn resolve(&self, ctx: &LengthContext) -> Option<f32>
pub fn is_relative(&self) -> bool
Trait Implementations§
Source§impl Clone for ParsedLength
impl Clone for ParsedLength
impl Copy for ParsedLength
Source§impl Debug for ParsedLength
impl Debug for ParsedLength
Source§impl PartialEq for ParsedLength
impl PartialEq for ParsedLength
impl StructuralPartialEq for ParsedLength
Auto Trait Implementations§
impl Freeze for ParsedLength
impl RefUnwindSafe for ParsedLength
impl Send for ParsedLength
impl Sync for ParsedLength
impl Unpin for ParsedLength
impl UnsafeUnpin for ParsedLength
impl UnwindSafe for ParsedLength
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