pub struct DocCommentNode { /* private fields */ }Expand description
Typed doc-comment CST wrapper.
Args: None.
Returns: Stable accessors for doc-comment text and span.
Implementations§
Source§impl DocCommentNode
impl DocCommentNode
Sourcepub fn cast(syntax: SyntaxNode) -> Option<Self>
pub fn cast(syntax: SyntaxNode) -> Option<Self>
Casts a raw rowan node into a typed doc-comment wrapper.
Args: syntax: Raw rowan syntax node.
Returns:
Typed doc-comment wrapper when the kind matches DocComment.
Trait Implementations§
Source§impl Clone for DocCommentNode
impl Clone for DocCommentNode
Source§fn clone(&self) -> DocCommentNode
fn clone(&self) -> DocCommentNode
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 moreAuto Trait Implementations§
impl Freeze for DocCommentNode
impl !RefUnwindSafe for DocCommentNode
impl !Send for DocCommentNode
impl !Sync for DocCommentNode
impl Unpin for DocCommentNode
impl UnsafeUnpin for DocCommentNode
impl !UnwindSafe for DocCommentNode
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