pub enum LengthPercentageOrNone {
None,
Px(f32),
Percent(f32),
}Expand description
max-width and max-height.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LengthPercentageOrNone
impl Clone for LengthPercentageOrNone
Source§fn clone(&self) -> LengthPercentageOrNone
fn clone(&self) -> LengthPercentageOrNone
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LengthPercentageOrNone
Source§impl Debug for LengthPercentageOrNone
impl Debug for LengthPercentageOrNone
Source§impl Default for LengthPercentageOrNone
impl Default for LengthPercentageOrNone
Source§fn default() -> LengthPercentageOrNone
fn default() -> LengthPercentageOrNone
Returns the “default value” for a type. Read more
Source§impl PartialEq for LengthPercentageOrNone
impl PartialEq for LengthPercentageOrNone
Source§fn eq(&self, other: &LengthPercentageOrNone) -> bool
fn eq(&self, other: &LengthPercentageOrNone) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LengthPercentageOrNone
Auto Trait Implementations§
impl Freeze for LengthPercentageOrNone
impl RefUnwindSafe for LengthPercentageOrNone
impl Send for LengthPercentageOrNone
impl Sync for LengthPercentageOrNone
impl Unpin for LengthPercentageOrNone
impl UnsafeUnpin for LengthPercentageOrNone
impl UnwindSafe for LengthPercentageOrNone
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