Enum parcel_css::values::length::LengthValue
source · [−]pub enum LengthValue {
Show 43 variants
Px(f32),
In(f32),
Cm(f32),
Mm(f32),
Q(f32),
Pt(f32),
Pc(f32),
Em(f32),
Rem(f32),
Ex(f32),
Rex(f32),
Ch(f32),
Rch(f32),
Cap(f32),
Rcap(f32),
Ic(f32),
Ric(f32),
Lh(f32),
Rlh(f32),
Vw(f32),
Lvw(f32),
Svw(f32),
Dvw(f32),
Vh(f32),
Lvh(f32),
Svh(f32),
Dvh(f32),
Vi(f32),
Svi(f32),
Lvi(f32),
Dvi(f32),
Vb(f32),
Svb(f32),
Lvb(f32),
Dvb(f32),
Vmin(f32),
Svmin(f32),
Lvmin(f32),
Dvmin(f32),
Vmax(f32),
Svmax(f32),
Lvmax(f32),
Dvmax(f32),
}
Variants
Px(f32)
In(f32)
Cm(f32)
Mm(f32)
Q(f32)
Pt(f32)
Pc(f32)
Em(f32)
Rem(f32)
Ex(f32)
Rex(f32)
Ch(f32)
Rch(f32)
Cap(f32)
Rcap(f32)
Ic(f32)
Ric(f32)
Lh(f32)
Rlh(f32)
Vw(f32)
Lvw(f32)
Svw(f32)
Dvw(f32)
Vh(f32)
Lvh(f32)
Svh(f32)
Dvh(f32)
Vi(f32)
Svi(f32)
Lvi(f32)
Dvi(f32)
Vb(f32)
Svb(f32)
Lvb(f32)
Dvb(f32)
Vmin(f32)
Svmin(f32)
Lvmin(f32)
Dvmin(f32)
Vmax(f32)
Svmax(f32)
Lvmax(f32)
Dvmax(f32)
Implementations
sourceimpl LengthValue
impl LengthValue
Trait Implementations
sourceimpl Clone for LengthValue
impl Clone for LengthValue
sourcefn clone(&self) -> LengthValue
fn clone(&self) -> LengthValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LengthValue
impl Debug for LengthValue
sourceimpl Mul<f32> for LengthValue
impl Mul<f32> for LengthValue
sourceimpl<'i> Parse<'i> for LengthValue
impl<'i> Parse<'i> for LengthValue
sourcefn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
Parse a value of this type using an existing parser.
sourcefn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
Parse a value from a string. Read more
sourceimpl PartialEq<LengthValue> for LengthValue
impl PartialEq<LengthValue> for LengthValue
sourcefn eq(&self, other: &LengthValue) -> bool
fn eq(&self, other: &LengthValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LengthValue) -> bool
fn ne(&self, other: &LengthValue) -> bool
This method tests for !=
.
sourceimpl PartialEq<f32> for LengthValue
impl PartialEq<f32> for LengthValue
sourceimpl PartialOrd<LengthValue> for LengthValue
impl PartialOrd<LengthValue> for LengthValue
sourcefn partial_cmp(&self, other: &LengthValue) -> Option<Ordering>
fn partial_cmp(&self, other: &LengthValue) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<f32> for LengthValue
impl PartialOrd<f32> for LengthValue
sourcefn partial_cmp(&self, other: &f32) -> Option<Ordering>
fn partial_cmp(&self, other: &f32) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl ToCss for LengthValue
impl ToCss for LengthValue
sourcefn to_css<W>(&self, dest: &mut Printer<'_, W>) -> Result<(), PrinterError> where
W: Write,
fn to_css<W>(&self, dest: &mut Printer<'_, W>) -> Result<(), PrinterError> where
W: Write,
Serialize self
in CSS syntax, writing to dest
.
sourcefn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
Serialize self
in CSS syntax and return a string. Read more
impl StructuralPartialEq for LengthValue
Auto Trait Implementations
impl RefUnwindSafe for LengthValue
impl Send for LengthValue
impl Sync for LengthValue
impl Unpin for LengthValue
impl UnwindSafe for LengthValue
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more