pub struct FlexShrinkStyleValue(pub Number);Expand description
Represents the style value for flex-shrink as defined in css-flexbox-1.
Flexbox is a one-dimensional layout system, which places content either horizontally or vertically, with optional wrapping.
The grammar is defined as:
<number [0,∞]>Tuple Fields§
§0: NumberTrait Implementations§
Source§impl Clone for FlexShrinkStyleValue
impl Clone for FlexShrinkStyleValue
Source§fn clone(&self) -> FlexShrinkStyleValue
fn clone(&self) -> FlexShrinkStyleValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlexShrinkStyleValue
impl Debug for FlexShrinkStyleValue
Source§impl Hash for FlexShrinkStyleValue
impl Hash for FlexShrinkStyleValue
Source§impl Ord for FlexShrinkStyleValue
impl Ord for FlexShrinkStyleValue
Source§fn cmp(&self, other: &FlexShrinkStyleValue) -> Ordering
fn cmp(&self, other: &FlexShrinkStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for FlexShrinkStyleValue
impl<'a> Parse<'a> for FlexShrinkStyleValue
Source§impl PartialEq for FlexShrinkStyleValue
impl PartialEq for FlexShrinkStyleValue
Source§impl PartialOrd for FlexShrinkStyleValue
impl PartialOrd for FlexShrinkStyleValue
Source§impl<'a> Peek<'a> for FlexShrinkStyleValue
impl<'a> Peek<'a> for FlexShrinkStyleValue
Source§impl ToCursors for FlexShrinkStyleValue
impl ToCursors for FlexShrinkStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FlexShrinkStyleValue
impl StructuralPartialEq for FlexShrinkStyleValue
Auto Trait Implementations§
impl Freeze for FlexShrinkStyleValue
impl RefUnwindSafe for FlexShrinkStyleValue
impl Send for FlexShrinkStyleValue
impl Sync for FlexShrinkStyleValue
impl Unpin for FlexShrinkStyleValue
impl UnwindSafe for FlexShrinkStyleValue
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