pub enum ScopeItem {
Enum {
token: Enum,
brace: Brace,
variants: Punctuated<Variant, Comma>,
},
Struct {
token: Struct,
fields: Fields,
},
Type {
token: Type,
eq_token: Eq,
ty: Box<Type>,
},
Union {
token: Union,
fields: FieldsNamed,
},
}
Expand description
Content of items supported by Scope
that are not common to all variants
Variants§
Enum
A syn::ItemEnum
, minus common parts
Struct
A syn::ItemStruct
, minus common parts
Uses custom Fields
, supporting field initializers.
Type
A syn::ItemType
, minus common parts
Union
A syn::ItemUnion
, minus common parts
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScopeItem
impl RefUnwindSafe for ScopeItem
impl !Send for ScopeItem
impl !Sync for ScopeItem
impl Unpin for ScopeItem
impl UnwindSafe for ScopeItem
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