pub struct BangImportant {
pub bang: Bang,
pub important: Ident,
}
Expand description
Represents a two tokens, the first being Kind::Delim where the char is !
, and the second being an Ident
with
the value important
. [CSS defines this as]:
<ws*>
╭──────────────────────────╮
│├─╯─╭─ <whitespace-token> ─╮─╰─┤│
╰──────────────────────╯
<!important>
│├─ "!" ─ <ws*> ─ <ident-token "important"> ─ <ws*> ─┤│
<ws*>
is any number of <whitespace-token>
s, defined as Kind::Whitespace. This is
automatically skipped by default in the Parser anyway.
Fields§
§bang: Bang
§important: Ident
Trait Implementations§
Source§impl Clone for BangImportant
impl Clone for BangImportant
Source§fn clone(&self) -> BangImportant
fn clone(&self) -> BangImportant
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 BangImportant
impl Debug for BangImportant
Source§impl Hash for BangImportant
impl Hash for BangImportant
Source§impl Ord for BangImportant
impl Ord for BangImportant
Source§fn cmp(&self, other: &BangImportant) -> Ordering
fn cmp(&self, other: &BangImportant) -> 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 BangImportant
impl<'a> Parse<'a> for BangImportant
Source§impl PartialEq for BangImportant
impl PartialEq for BangImportant
Source§impl PartialOrd for BangImportant
impl PartialOrd for BangImportant
Source§impl<'a> Peek<'a> for BangImportant
impl<'a> Peek<'a> for BangImportant
Source§impl ToCursors for BangImportant
impl ToCursors for BangImportant
fn to_cursors(&self, s: &mut impl CursorSink)
impl Copy for BangImportant
impl Eq for BangImportant
impl StructuralPartialEq for BangImportant
Auto Trait Implementations§
impl Freeze for BangImportant
impl RefUnwindSafe for BangImportant
impl Send for BangImportant
impl Sync for BangImportant
impl Unpin for BangImportant
impl UnwindSafe for BangImportant
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