pub struct Struct {
pub attributes: Vec<TokenStream>,
pub visibility: TokenStream,
pub ident: Ident,
pub generics: Generics,
pub kind: Option<StructKind>,
pub where_clause: Option<WhereClause>,
pub struct_fields: Vec<StructField>,
}Fields§
§attributes: Vec<TokenStream>§visibility: TokenStream§ident: Ident§generics: Generics§kind: Option<StructKind>§where_clause: Option<WhereClause>§struct_fields: Vec<StructField>Trait Implementations§
Source§impl TokenBuilderExtend for Struct
impl TokenBuilderExtend for Struct
fn add_to(&self, tb: &mut TokenBuilder)
Auto Trait Implementations§
impl !Send for Struct
impl !Sync for Struct
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Unpin for Struct
impl UnsafeUnpin for Struct
impl UnwindSafe for Struct
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