pub struct QualifiedRule<'a, P, D, R, M>where
D: DeclarationValue<'a, M>,
M: NodeMetadata,{
pub prelude: P,
pub block: Block<'a, D, R, M>,
/* private fields */
}Fields§
§prelude: P§block: Block<'a, D, R, M>Trait Implementations§
Source§impl<'a, P: Clone, D, R: Clone, M> Clone for QualifiedRule<'a, P, D, R, M>
impl<'a, P: Clone, D, R: Clone, M> Clone for QualifiedRule<'a, P, D, R, M>
Source§fn clone(&self) -> QualifiedRule<'a, P, D, R, M>
fn clone(&self) -> QualifiedRule<'a, P, D, R, M>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, P, D, R, M> NodeWithMetadata<M> for QualifiedRule<'a, P, D, R, M>where
D: DeclarationValue<'a, M>,
M: NodeMetadata,
impl<'a, P, D, R, M> NodeWithMetadata<M> for QualifiedRule<'a, P, D, R, M>where
D: DeclarationValue<'a, M>,
M: NodeMetadata,
Source§fn metadata(&self) -> M
fn metadata(&self) -> M
Returns the complete aggregated metadata for this node (self + children)
Source§fn self_metadata(&self, initial: M) -> M
fn self_metadata(&self, initial: M) -> M
Returns the metadata contributed by this node itself plus and child meta.
Most nodes don’t contribute metadata, so can simply return
child.
Other nodes may want to alter the metadata; supplying their own modifications
to initial.Source§impl<'a, P: Ord, D, R: Ord, M> Ord for QualifiedRule<'a, P, D, R, M>
impl<'a, P: Ord, D, R: Ord, M> Ord for QualifiedRule<'a, P, D, R, M>
Source§fn cmp(&self, other: &QualifiedRule<'a, P, D, R, M>) -> Ordering
fn cmp(&self, other: &QualifiedRule<'a, P, D, R, M>) -> Ordering
1.21.0§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, P, D, R, M> Parse<'a> for QualifiedRule<'a, P, D, R, M>where
D: DeclarationValue<'a, M>,
P: Parse<'a>,
R: Parse<'a> + NodeWithMetadata<M>,
M: NodeMetadata,
A QualifiedRule represents a block with a prelude which may contain other rules.
Examples of QualifiedRules are StyleRule, KeyframeRule (no s!).
impl<'a, P, D, R, M> Parse<'a> for QualifiedRule<'a, P, D, R, M>where
D: DeclarationValue<'a, M>,
P: Parse<'a>,
R: Parse<'a> + NodeWithMetadata<M>,
M: NodeMetadata,
A QualifiedRule represents a block with a prelude which may contain other rules. Examples of QualifiedRules are StyleRule, KeyframeRule (no s!).
Source§impl<'a, P: PartialOrd, D, R: PartialOrd, M> PartialOrd for QualifiedRule<'a, P, D, R, M>
impl<'a, P: PartialOrd, D, R: PartialOrd, M> PartialOrd for QualifiedRule<'a, P, D, R, M>
Source§impl<'a, P, D, R, M> Peek<'a> for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> Peek<'a> for QualifiedRule<'a, P, D, R, M>
Source§impl<'a, P, D, R, M> SemanticEq for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> SemanticEq for QualifiedRule<'a, P, D, R, M>
Source§fn semantic_eq(&self, other: &Self) -> bool
fn semantic_eq(&self, other: &Self) -> bool
Returns
true if self and other are semantically equal.Source§impl<'a, P, D, R, M> ToCursors for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> ToCursors for QualifiedRule<'a, P, D, R, M>
fn to_cursors(&self, s: &mut impl CursorSink)
Source§impl<'a, P, D, R, M> ToSpan for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> ToSpan for QualifiedRule<'a, P, D, R, M>
impl<'a, P: Eq, D, R: Eq, M> Eq for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> StructuralPartialEq for QualifiedRule<'a, P, D, R, M>where
D: DeclarationValue<'a, M>,
M: NodeMetadata,
Auto Trait Implementations§
impl<'a, P, D, R, M> Freeze for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> !RefUnwindSafe for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> !Send for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> !Sync for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> Unpin for QualifiedRule<'a, P, D, R, M>
impl<'a, P, D, R, M> !UnwindSafe for QualifiedRule<'a, P, D, R, M>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)