pub struct FnDef<'a> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<'a> AstNode<'a> for FnDef<'a>
impl<'a> AstNode<'a> for FnDef<'a>
fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self>
fn syntax(self) -> SyntaxNodeRef<'a>
sourceimpl<'a> AttrsOwner<'a> for FnDef<'a>
impl<'a> AttrsOwner<'a> for FnDef<'a>
fn attrs(self) -> AstChildren<'a, Attr<'a>> ⓘ
sourceimpl<'a> DocCommentsOwner<'a> for FnDef<'a>
impl<'a> DocCommentsOwner<'a> for FnDef<'a>
fn doc_comments(self) -> AstChildren<'a, Comment<'a>> ⓘ
sourcefn doc_comment_text(self) -> String
fn doc_comment_text(self) -> String
Returns the textual content of a doc comment block as a single string.
That is, strips leading
///
and joins lines Read moresourceimpl<'a> TypeParamsOwner<'a> for FnDef<'a>
impl<'a> TypeParamsOwner<'a> for FnDef<'a>
fn type_param_list(self) -> Option<TypeParamList<'a>>
fn where_clause(self) -> Option<WhereClause<'a>>
impl<'a> Copy for FnDef<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FnDef<'a>
impl<'a> Send for FnDef<'a>
impl<'a> Sync for FnDef<'a>
impl<'a> Unpin for FnDef<'a>
impl<'a> !UnwindSafe for FnDef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more