Struct parcel_css::values::percentage::Percentage
source · [−]pub struct Percentage(pub f32);
Expand description
https://drafts.csswg.org/css-values-4/#percentages
Tuple Fields
0: f32
Trait Implementations
sourceimpl Add<Percentage> for Percentage
impl Add<Percentage> for Percentage
type Output = Self
type Output = Self
The resulting type after applying the +
operator.
sourcefn add(self, other: Percentage) -> Percentage
fn add(self, other: Percentage) -> Percentage
Performs the +
operation. Read more
sourceimpl Clone for Percentage
impl Clone for Percentage
sourcefn clone(&self) -> Percentage
fn clone(&self) -> Percentage
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 Percentage
impl Debug for Percentage
sourceimpl From<Calc<Percentage>> for Percentage
impl From<Calc<Percentage>> for Percentage
sourcefn from(calc: Calc<Percentage>) -> Percentage
fn from(calc: Calc<Percentage>) -> Percentage
Performs the conversion.
sourceimpl Into<Calc<Percentage>> for Percentage
impl Into<Calc<Percentage>> for Percentage
sourcefn into(self) -> Calc<Percentage>
fn into(self) -> Calc<Percentage>
Performs the conversion.
sourceimpl Mul<f32> for Percentage
impl Mul<f32> for Percentage
sourceimpl PartialEq<Percentage> for Percentage
impl PartialEq<Percentage> for Percentage
sourcefn eq(&self, other: &Percentage) -> bool
fn eq(&self, other: &Percentage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Percentage) -> bool
fn ne(&self, other: &Percentage) -> bool
This method tests for !=
.
sourceimpl PartialEq<f32> for Percentage
impl PartialEq<f32> for Percentage
sourceimpl PartialOrd<Percentage> for Percentage
impl PartialOrd<Percentage> for Percentage
sourcefn partial_cmp(&self, other: &Percentage) -> Option<Ordering>
fn partial_cmp(&self, other: &Percentage) -> 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 Percentage
impl PartialOrd<f32> for Percentage
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 Percentage
Auto Trait Implementations
impl RefUnwindSafe for Percentage
impl Send for Percentage
impl Sync for Percentage
impl Unpin for Percentage
impl UnwindSafe for Percentage
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