pub enum CornerShapeValue {
Round(Ident),
Scoop(Ident),
Bevel(Ident),
Notch(Ident),
Square(Ident),
Squircle(Ident),
SuperellipseFunction(SuperellipseFunction),
}Expand description
https://drafts.csswg.org/css-borders-4/#typedef-corner-shape-value
<corner-shape-value> = round | scoop | bevel | notch | square | squircle | <superellipse()>Variants§
Round(Ident)
Scoop(Ident)
Bevel(Ident)
Notch(Ident)
Square(Ident)
Squircle(Ident)
SuperellipseFunction(SuperellipseFunction)
Trait Implementations§
Source§impl Clone for CornerShapeValue
impl Clone for CornerShapeValue
Source§fn clone(&self) -> CornerShapeValue
fn clone(&self) -> CornerShapeValue
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 CornerShapeValue
impl Debug for CornerShapeValue
Source§impl Hash for CornerShapeValue
impl Hash for CornerShapeValue
Source§impl NodeWithMetadata<CssMetadata> for CornerShapeValue
impl NodeWithMetadata<CssMetadata> for CornerShapeValue
Source§fn self_metadata(&self) -> CssMetadata
fn self_metadata(&self) -> CssMetadata
Returns the metadata contributed by this node itself, not including children.
Most nodes don’t contribute metadata, so can simply return
M::default().
Nodes like StyleRule or AtRules should return their own node kind flags here.Source§fn metadata(&self) -> CssMetadata
fn metadata(&self) -> CssMetadata
Returns the complete aggregated metadata for this node (self + children).
Default implementation merges children’s metadata with self_metadata().
Source§impl Ord for CornerShapeValue
impl Ord for CornerShapeValue
Source§fn cmp(&self, other: &CornerShapeValue) -> Ordering
fn cmp(&self, other: &CornerShapeValue) -> 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 CornerShapeValue
impl<'a> Parse<'a> for CornerShapeValue
Source§impl PartialEq for CornerShapeValue
impl PartialEq for CornerShapeValue
Source§impl PartialOrd for CornerShapeValue
impl PartialOrd for CornerShapeValue
Source§impl<'a> Peek<'a> for CornerShapeValue
impl<'a> Peek<'a> for CornerShapeValue
Source§impl SemanticEq for CornerShapeValue
impl SemanticEq for CornerShapeValue
Source§fn semantic_eq(&self, other: &Self) -> bool
fn semantic_eq(&self, other: &Self) -> bool
Returns
true if self and other are semantically equal.Source§impl ToCursors for CornerShapeValue
impl ToCursors for CornerShapeValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for CornerShapeValue
impl StructuralPartialEq for CornerShapeValue
Auto Trait Implementations§
impl Freeze for CornerShapeValue
impl RefUnwindSafe for CornerShapeValue
impl Send for CornerShapeValue
impl Sync for CornerShapeValue
impl Unpin for CornerShapeValue
impl UnsafeUnpin for CornerShapeValue
impl UnwindSafe for CornerShapeValue
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