pub enum HwbChannelKeyword {
H(Ident),
W(Ident),
B(Ident),
Alpha(Ident),
}Expand description
Channel keyword for hwb() relative color syntax.
Valid keywords: h, w, b, alpha
Variants§
Trait Implementations§
Source§impl Clone for HwbChannelKeyword
impl Clone for HwbChannelKeyword
Source§fn clone(&self) -> HwbChannelKeyword
fn clone(&self) -> HwbChannelKeyword
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 HwbChannelKeyword
Source§impl Debug for HwbChannelKeyword
impl Debug for HwbChannelKeyword
impl Eq for HwbChannelKeyword
Source§impl From<HwbChannelKeyword> for Cursor
impl From<HwbChannelKeyword> for Cursor
Source§fn from(value: HwbChannelKeyword) -> Cursor
fn from(value: HwbChannelKeyword) -> Cursor
Converts to this type from the input type.
Source§impl From<HwbChannelKeyword> for Token
impl From<HwbChannelKeyword> for Token
Source§fn from(value: HwbChannelKeyword) -> Token
fn from(value: HwbChannelKeyword) -> Token
Converts to this type from the input type.
Source§impl Hash for HwbChannelKeyword
impl Hash for HwbChannelKeyword
Source§impl NodeWithMetadata<CssMetadata> for HwbChannelKeyword
impl NodeWithMetadata<CssMetadata> for HwbChannelKeyword
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 HwbChannelKeyword
impl Ord for HwbChannelKeyword
Source§fn cmp(&self, other: &HwbChannelKeyword) -> Ordering
fn cmp(&self, other: &HwbChannelKeyword) -> 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 HwbChannelKeyword
impl<'a> Parse<'a> for HwbChannelKeyword
Source§impl PartialEq for HwbChannelKeyword
impl PartialEq for HwbChannelKeyword
Source§fn eq(&self, other: &HwbChannelKeyword) -> bool
fn eq(&self, other: &HwbChannelKeyword) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HwbChannelKeyword
impl PartialOrd for HwbChannelKeyword
Source§impl<'a> Peek<'a> for HwbChannelKeyword
impl<'a> Peek<'a> for HwbChannelKeyword
Source§impl SemanticEq for HwbChannelKeyword
impl SemanticEq for HwbChannelKeyword
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 HwbChannelKeyword
Source§impl ToCursors for HwbChannelKeyword
impl ToCursors for HwbChannelKeyword
fn to_cursors(&self, s: &mut impl CursorSink)
Auto Trait Implementations§
impl Freeze for HwbChannelKeyword
impl RefUnwindSafe for HwbChannelKeyword
impl Send for HwbChannelKeyword
impl Sync for HwbChannelKeyword
impl Unpin for HwbChannelKeyword
impl UnsafeUnpin for HwbChannelKeyword
impl UnwindSafe for HwbChannelKeyword
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