pub struct CounterName(/* private fields */);Expand description
https://drafts.csswg.org/css-lists-3/#typedef-counter-name
<counter-name> = <custom-ident>Trait Implementations§
Source§impl Clone for CounterName
impl Clone for CounterName
Source§fn clone(&self) -> CounterName
fn clone(&self) -> CounterName
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 moreimpl Copy for CounterName
Source§impl Debug for CounterName
impl Debug for CounterName
impl Eq for CounterName
Source§impl From<CounterName> for Cursor
impl From<CounterName> for Cursor
Source§fn from(value: CounterName) -> Cursor
fn from(value: CounterName) -> Cursor
Converts to this type from the input type.
Source§impl From<CounterName> for Token
impl From<CounterName> for Token
Source§fn from(value: CounterName) -> Token
fn from(value: CounterName) -> Token
Converts to this type from the input type.
Source§impl Hash for CounterName
impl Hash for CounterName
Source§impl NodeWithMetadata<CssMetadata> for CounterName
impl NodeWithMetadata<CssMetadata> for CounterName
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 CounterName
impl Ord for CounterName
Source§fn cmp(&self, other: &CounterName) -> Ordering
fn cmp(&self, other: &CounterName) -> 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 CounterName
impl<'a> Parse<'a> for CounterName
Source§impl PartialEq for CounterName
impl PartialEq for CounterName
Source§fn eq(&self, other: &CounterName) -> bool
fn eq(&self, other: &CounterName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CounterName
impl PartialOrd for CounterName
Source§impl<'a> Peek<'a> for CounterName
impl<'a> Peek<'a> for CounterName
Source§impl SemanticEq for CounterName
impl SemanticEq for CounterName
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 StructuralPartialEq for CounterName
Source§impl ToCursors for CounterName
impl ToCursors for CounterName
fn to_cursors(&self, s: &mut impl CursorSink)
Auto Trait Implementations§
impl Freeze for CounterName
impl RefUnwindSafe for CounterName
impl Send for CounterName
impl Sync for CounterName
impl Unpin for CounterName
impl UnsafeUnpin for CounterName
impl UnwindSafe for CounterName
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