pub enum SvgPaint<'a> {
Child(Ident),
ChildFunction(SvgPaintChildFunction<'a>),
}Expand description
https://drafts.csswg.org/fill-stroke-3/#typedef-svg-paint
<svg-paint> = child | child( <integer> )Variants§
Child(Ident)
ChildFunction(SvgPaintChildFunction<'a>)
Trait Implementations§
impl<'a> Eq for SvgPaint<'a>
Source§impl<'a> NodeWithMetadata<CssMetadata> for SvgPaint<'a>
impl<'a> NodeWithMetadata<CssMetadata> for SvgPaint<'a>
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<'a> Ord for SvgPaint<'a>
impl<'a> Ord for SvgPaint<'a>
1.21.0 (const: unstable) · 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> PartialOrd for SvgPaint<'a>
impl<'a> PartialOrd for SvgPaint<'a>
Source§impl<'a> SemanticEq for SvgPaint<'a>
impl<'a> SemanticEq for SvgPaint<'a>
Source§fn semantic_eq(&self, other: &Self) -> bool
fn semantic_eq(&self, other: &Self) -> bool
Returns
true if self and other are semantically equal.impl<'a> StructuralPartialEq for SvgPaint<'a>
Source§impl<'a> ToCursors for SvgPaint<'a>
impl<'a> ToCursors for SvgPaint<'a>
fn to_cursors(&self, s: &mut impl CursorSink)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SvgPaint<'a>
impl<'a> !Send for SvgPaint<'a>
impl<'a> !Sync for SvgPaint<'a>
impl<'a> !UnwindSafe for SvgPaint<'a>
impl<'a> Freeze for SvgPaint<'a>
impl<'a> Unpin for SvgPaint<'a>
impl<'a> UnsafeUnpin for SvgPaint<'a>
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