pub struct NoBlockAllowed(/* private fields */);Expand description
A struct to provide to rules to disallow blocks.
Sometimes a rule will not allow a block - for example @charset, @import. In those case, assigning this struct
to the Block can be useful to ensure that the QualifiedRule appropriately errors
if it enters the Block parsing context. This captures the ; token that may optionally end a “statement-style”
at-rule.
Trait Implementations§
Source§impl Clone for NoBlockAllowed
impl Clone for NoBlockAllowed
Source§fn clone(&self) -> NoBlockAllowed
fn clone(&self) -> NoBlockAllowed
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 NoBlockAllowed
impl Debug for NoBlockAllowed
Source§impl Hash for NoBlockAllowed
impl Hash for NoBlockAllowed
Source§impl Ord for NoBlockAllowed
impl Ord for NoBlockAllowed
Source§fn cmp(&self, other: &NoBlockAllowed) -> Ordering
fn cmp(&self, other: &NoBlockAllowed) -> 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 NoBlockAllowed
impl<'a> Parse<'a> for NoBlockAllowed
Source§impl PartialEq for NoBlockAllowed
impl PartialEq for NoBlockAllowed
Source§impl PartialOrd for NoBlockAllowed
impl PartialOrd for NoBlockAllowed
Source§impl<'a> Peek<'a> for NoBlockAllowed
impl<'a> Peek<'a> for NoBlockAllowed
Source§impl ToCursors for NoBlockAllowed
impl ToCursors for NoBlockAllowed
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for NoBlockAllowed
impl StructuralPartialEq for NoBlockAllowed
Auto Trait Implementations§
impl Freeze for NoBlockAllowed
impl RefUnwindSafe for NoBlockAllowed
impl Send for NoBlockAllowed
impl Sync for NoBlockAllowed
impl Unpin for NoBlockAllowed
impl UnwindSafe for NoBlockAllowed
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