pub struct PrefixDeclaration { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AstNode for PrefixDeclaration
impl AstNode for PrefixDeclaration
fn kind() -> SyntaxKind
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
Source§fn visible_variables(&self) -> Vec<Var>
fn visible_variables(&self) -> Vec<Var>
Returns all variables “visible” from outside the node.
fn can_cast(kind: SyntaxKind) -> bool
fn has_error(&self) -> bool
fn collect_decendants( &self, matcher: &impl Fn(SyntaxKind) -> bool, ) -> Vec<SyntaxNode> ⓘ
fn preorder_find_kind(&self, kind: SyntaxKind) -> Vec<SyntaxNode> ⓘ
fn used_prefixes(&self) -> Vec<String>
fn text(&self) -> String
fn text_until(&self, offset: TextSize) -> String
Source§impl Debug for PrefixDeclaration
impl Debug for PrefixDeclaration
Source§impl PartialEq for PrefixDeclaration
impl PartialEq for PrefixDeclaration
impl StructuralPartialEq for PrefixDeclaration
Auto Trait Implementations§
impl !RefUnwindSafe for PrefixDeclaration
impl !Send for PrefixDeclaration
impl !Sync for PrefixDeclaration
impl !UnwindSafe for PrefixDeclaration
impl Freeze for PrefixDeclaration
impl Unpin for PrefixDeclaration
impl UnsafeUnpin for PrefixDeclaration
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