pub struct ParsedExtendTargetFact {
pub kind: ParsedExtendTargetFactKind,
pub name: String,
pub optional: bool,
pub range: TextRange,
}Expand description
RFC-0007-E1 (#45): the target of an @extend rule. The ScssExtendRule node previously
parsed and then discarded its target, so an @extend %nonexistent / @extend .missing
(a dart-sass hard error) went unreported. This fact captures the (simple) target selector,
whether it carries the !optional flag (an optional extend must NOT be validated — dart-sass
allows a missing optional target), and its source range for diagnostic anchoring.
Fields§
§kind: ParsedExtendTargetFactKind§name: String§optional: bool§range: TextRangeTrait Implementations§
Source§impl Clone for ParsedExtendTargetFact
impl Clone for ParsedExtendTargetFact
Source§fn clone(&self) -> ParsedExtendTargetFact
fn clone(&self) -> ParsedExtendTargetFact
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 moreSource§impl Debug for ParsedExtendTargetFact
impl Debug for ParsedExtendTargetFact
impl Eq for ParsedExtendTargetFact
Source§impl PartialEq for ParsedExtendTargetFact
impl PartialEq for ParsedExtendTargetFact
Source§fn eq(&self, other: &ParsedExtendTargetFact) -> bool
fn eq(&self, other: &ParsedExtendTargetFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParsedExtendTargetFact
Auto Trait Implementations§
impl Freeze for ParsedExtendTargetFact
impl RefUnwindSafe for ParsedExtendTargetFact
impl Send for ParsedExtendTargetFact
impl Sync for ParsedExtendTargetFact
impl Unpin for ParsedExtendTargetFact
impl UnsafeUnpin for ParsedExtendTargetFact
impl UnwindSafe for ParsedExtendTargetFact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.