pub struct ShapeFunction<'a> {
pub name: Function,
pub fill_rule: Option<FillRuleStyleValue>,
pub from: Ident,
pub position: Position<'a>,
pub comma: Comma,
pub commands: CommaSeparated<'a, ShapeCommand<'a>>,
pub close: RightParen,
}Expand description
https://drafts.csswg.org/css-shapes/#funcdef-basic-shape-shape
<shape()> = shape(
<'fill-rule'>?
from <position> ,
<shape-command>#
)Fields§
§name: Function§fill_rule: Option<FillRuleStyleValue>§from: Ident§position: Position<'a>§comma: Comma§commands: CommaSeparated<'a, ShapeCommand<'a>>§close: RightParenTrait Implementations§
Source§impl<'a> Clone for ShapeFunction<'a>
impl<'a> Clone for ShapeFunction<'a>
Source§fn clone(&self) -> ShapeFunction<'a>
fn clone(&self) -> ShapeFunction<'a>
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 moreSource§impl<'a> Debug for ShapeFunction<'a>
impl<'a> Debug for ShapeFunction<'a>
impl<'a> Eq for ShapeFunction<'a>
Source§impl<'a> Hash for ShapeFunction<'a>
impl<'a> Hash for ShapeFunction<'a>
Source§impl<'a> NodeWithMetadata<CssMetadata> for ShapeFunction<'a>
impl<'a> NodeWithMetadata<CssMetadata> for ShapeFunction<'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 ShapeFunction<'a>
impl<'a> Ord for ShapeFunction<'a>
Source§fn cmp(&self, other: &ShapeFunction<'a>) -> Ordering
fn cmp(&self, other: &ShapeFunction<'a>) -> Ordering
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> Parse<'a> for ShapeFunction<'a>
impl<'a> Parse<'a> for ShapeFunction<'a>
Source§impl<'a> PartialEq for ShapeFunction<'a>
impl<'a> PartialEq for ShapeFunction<'a>
Source§impl<'a> PartialOrd for ShapeFunction<'a>
impl<'a> PartialOrd for ShapeFunction<'a>
Source§impl<'a> Peek<'a> for ShapeFunction<'a>
impl<'a> Peek<'a> for ShapeFunction<'a>
Source§impl<'a> SemanticEq for ShapeFunction<'a>
impl<'a> SemanticEq for ShapeFunction<'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 ShapeFunction<'a>
Source§impl<'a> ToCursors for ShapeFunction<'a>
impl<'a> ToCursors for ShapeFunction<'a>
fn to_cursors(&self, s: &mut impl CursorSink)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ShapeFunction<'a>
impl<'a> !Send for ShapeFunction<'a>
impl<'a> !Sync for ShapeFunction<'a>
impl<'a> !UnwindSafe for ShapeFunction<'a>
impl<'a> Freeze for ShapeFunction<'a>
impl<'a> Unpin for ShapeFunction<'a>
impl<'a> UnsafeUnpin for ShapeFunction<'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