pub struct ItemStruct {
pub struct_token: Struct,
pub ident: Ident,
pub brace_token: Brace,
pub fields: Vec<Field>,
}Expand description
A struct definition: struct S { a: A, b: B }.
Fields§
§struct_token: Struct§ident: Ident§brace_token: Brace§fields: Vec<Field>Trait Implementations§
Source§impl Debug for ItemStruct
impl Debug for ItemStruct
Source§impl Parse for ItemStruct
impl Parse for ItemStruct
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for ItemStruct
impl !Sync for ItemStruct
impl Freeze for ItemStruct
impl RefUnwindSafe for ItemStruct
impl Unpin for ItemStruct
impl UnsafeUnpin for ItemStruct
impl UnwindSafe for ItemStruct
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