pub struct ConstantDecl(/* private fields */);Expand description
CONSTANT(S) ....
Implementations§
Source§impl ConstantDecl
impl ConstantDecl
Sourcepub fn items(&self) -> impl Iterator<Item = SyntaxNode> + use<>
pub fn items(&self) -> impl Iterator<Item = SyntaxNode> + use<>
The declared items.
Trait Implementations§
Source§impl AstNode for ConstantDecl
impl AstNode for ConstantDecl
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Whether nodes of
kind can be wrapped.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Wraps
node if it has the right kind.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying node.
Source§impl Clone for ConstantDecl
impl Clone for ConstantDecl
Source§impl Debug for ConstantDecl
impl Debug for ConstantDecl
impl Eq for ConstantDecl
Source§impl Hash for ConstantDecl
impl Hash for ConstantDecl
Source§impl PartialEq for ConstantDecl
impl PartialEq for ConstantDecl
impl StructuralPartialEq for ConstantDecl
Auto Trait Implementations§
impl !RefUnwindSafe for ConstantDecl
impl !Send for ConstantDecl
impl !Sync for ConstantDecl
impl !UnwindSafe for ConstantDecl
impl Forget for ConstantDecl
impl Freeze for ConstantDecl
impl Move for ConstantDecl
impl Unpin for ConstantDecl
impl UnsafeUnpin for ConstantDecl
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