pub struct StructDef<'a> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<'a> AstNode<'a> for StructDef<'a>
impl<'a> AstNode<'a> for StructDef<'a>
fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self>
fn syntax(self) -> SyntaxNodeRef<'a>
sourceimpl<'a> AttrsOwner<'a> for StructDef<'a>
impl<'a> AttrsOwner<'a> for StructDef<'a>
fn attrs(self) -> AstChildren<'a, Attr<'a>> ⓘ
sourceimpl<'a> From<StructDef<'a>> for StructDefNode
impl<'a> From<StructDef<'a>> for StructDefNode
sourcefn from(ast: StructDef<'a>) -> StructDefNode
fn from(ast: StructDef<'a>) -> StructDefNode
Converts to this type from the input type.
sourceimpl<'a> TypeParamsOwner<'a> for StructDef<'a>
impl<'a> TypeParamsOwner<'a> for StructDef<'a>
fn type_param_list(self) -> Option<TypeParamList<'a>>
fn where_clause(self) -> Option<WhereClause<'a>>
impl<'a> Copy for StructDef<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for StructDef<'a>
impl<'a> Send for StructDef<'a>
impl<'a> Sync for StructDef<'a>
impl<'a> Unpin for StructDef<'a>
impl<'a> !UnwindSafe for StructDef<'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