pub enum LengthPercentageOrAuto {
Auto,
Px(f32),
Percent(f32),
}Expand description
width, height, min-width, min-height and the margins.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LengthPercentageOrAuto
impl Clone for LengthPercentageOrAuto
Source§fn clone(&self) -> LengthPercentageOrAuto
fn clone(&self) -> LengthPercentageOrAuto
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 LengthPercentageOrAuto
Source§impl Debug for LengthPercentageOrAuto
impl Debug for LengthPercentageOrAuto
Source§impl Default for LengthPercentageOrAuto
impl Default for LengthPercentageOrAuto
Source§fn default() -> LengthPercentageOrAuto
fn default() -> LengthPercentageOrAuto
Returns the “default value” for a type. Read more
Source§impl PartialEq for LengthPercentageOrAuto
impl PartialEq for LengthPercentageOrAuto
Source§fn eq(&self, other: &LengthPercentageOrAuto) -> bool
fn eq(&self, other: &LengthPercentageOrAuto) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LengthPercentageOrAuto
Auto Trait Implementations§
impl Freeze for LengthPercentageOrAuto
impl RefUnwindSafe for LengthPercentageOrAuto
impl Send for LengthPercentageOrAuto
impl Sync for LengthPercentageOrAuto
impl Unpin for LengthPercentageOrAuto
impl UnsafeUnpin for LengthPercentageOrAuto
impl UnwindSafe for LengthPercentageOrAuto
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