Enum parcel_css::values::length::LengthValue
source · [−]pub enum LengthValue {
}
Variants
Px(f32)
In(f32)
Cm(f32)
Mm(f32)
Q(f32)
Pt(f32)
Pc(f32)
Em(f32)
Ex(f32)
Ch(f32)
Rem(f32)
Vw(f32)
Vh(f32)
Vmin(f32)
Vmax(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 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
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.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more