pub struct ColorStripe {
pub color: Color,
pub thickness: Option<LengthPercentageOrFlex>,
}Expand description
https://drafts.csswg.org/css-images-4/#typedef-color-stripe
<color-stripe> = <color> && [ <length-percentage> | <flex> ]?Fields§
§color: Color§thickness: Option<LengthPercentageOrFlex>Trait Implementations§
Source§impl Clone for ColorStripe
impl Clone for ColorStripe
Source§fn clone(&self) -> ColorStripe
fn clone(&self) -> ColorStripe
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 ColorStripe
impl Debug for ColorStripe
Source§impl Hash for ColorStripe
impl Hash for ColorStripe
Source§impl Ord for ColorStripe
impl Ord for ColorStripe
Source§fn cmp(&self, other: &ColorStripe) -> Ordering
fn cmp(&self, other: &ColorStripe) -> 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 ColorStripe
impl<'a> Parse<'a> for ColorStripe
Source§impl PartialEq for ColorStripe
impl PartialEq for ColorStripe
Source§impl PartialOrd for ColorStripe
impl PartialOrd for ColorStripe
Source§impl<'a> Peek<'a> for ColorStripe
impl<'a> Peek<'a> for ColorStripe
Source§impl ToCursors for ColorStripe
impl ToCursors for ColorStripe
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ColorStripe
impl StructuralPartialEq for ColorStripe
Auto Trait Implementations§
impl Freeze for ColorStripe
impl RefUnwindSafe for ColorStripe
impl Send for ColorStripe
impl Sync for ColorStripe
impl Unpin for ColorStripe
impl UnwindSafe for ColorStripe
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