pub struct ParsedCst { /* private fields */ }Implementations§
Source§impl ParsedCst
impl ParsedCst
pub fn new(root: SyntaxNode<SyntaxKind>) -> Self
pub fn root(&self) -> &SyntaxNode<SyntaxKind>
pub fn stylesheet(&self) -> Option<StylesheetCstNode>
pub fn rules(&self) -> Vec<RuleCstNode>
pub fn selectors(&self) -> Vec<SelectorCstNode>
pub fn declarations(&self) -> Vec<DeclarationCstNode>
pub fn declaration_lists(&self) -> Vec<DeclarationListCstNode>
pub fn values(&self) -> Vec<ValueCstNode>
pub fn component_values(&self) -> Vec<ComponentValueCstNode>
pub fn simple_blocks(&self) -> Vec<SimpleBlockCstNode>
pub fn component_value_lists(&self) -> Vec<ComponentValueListCstNode>
pub fn comma_separated_component_value_lists( &self, ) -> Vec<CommaSeparatedComponentValueListCstNode>
pub fn custom_property_values(&self) -> Vec<CustomPropertyValueCstNode>
pub fn at_rules(&self) -> Vec<AtRuleCstNode>
pub fn bogus_nodes(&self) -> Vec<BogusCstNode>
pub fn has_bogus_nodes(&self) -> bool
Trait Implementations§
impl Eq for ParsedCst
impl StructuralPartialEq for ParsedCst
Auto Trait Implementations§
impl !RefUnwindSafe for ParsedCst
impl !UnwindSafe for ParsedCst
impl Freeze for ParsedCst
impl Send for ParsedCst
impl Sync for ParsedCst
impl Unpin for ParsedCst
impl UnsafeUnpin for ParsedCst
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.