pub struct ExternDecl { /* private fields */ }Implementations§
Source§impl ExternDecl
impl ExternDecl
pub fn name_token(&self) -> Option<SyntaxToken>
pub fn param_list(&self) -> Option<ParamList>
Sourcepub fn doc(&self) -> Option<DocComment>
pub fn doc(&self) -> Option<DocComment>
The leading /// doc comment, if one is attached (B0.6b).
Sourcepub fn is_pub(&self) -> bool
pub fn is_pub(&self) -> bool
See FlowDecl::is_pub.
Trait Implementations§
Source§impl AstNode for ExternDecl
impl AstNode for ExternDecl
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for ExternDecl
impl Clone for ExternDecl
Source§fn clone(&self) -> ExternDecl
fn clone(&self) -> ExternDecl
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 ExternDecl
impl Debug for ExternDecl
Source§impl Display for ExternDecl
impl Display for ExternDecl
impl Eq for ExternDecl
Source§impl Hash for ExternDecl
impl Hash for ExternDecl
Source§impl PartialEq for ExternDecl
impl PartialEq for ExternDecl
impl StructuralPartialEq for ExternDecl
Auto Trait Implementations§
impl !RefUnwindSafe for ExternDecl
impl !Send for ExternDecl
impl !Sync for ExternDecl
impl !UnwindSafe for ExternDecl
impl Freeze for ExternDecl
impl Unpin for ExternDecl
impl UnsafeUnpin for ExternDecl
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