pub struct Anon {
pub attrs: Vec<Attribute>,
pub token: Struct,
pub generics: Generics,
pub style: StructStyle,
pub fields: Punctuated<AnonField, Comma>,
pub impls: Vec<ItemImpl>,
}
Expand description
Contents of impl_anon!
The impl_anon macro may be used to conveniently declare a struct’s type, implementations and construct an instance. This struct represents the macro’s input.
Fields§
§attrs: Vec<Attribute>
Struct attributes
token: Struct
struct
token
generics: Generics
(Explicit) struct generics
Note: the macro instantiated type may have extra generics.
style: StructStyle
Struct style: unit/tuple/regular
fields: Punctuated<AnonField, Comma>
Struct fields
impls: Vec<ItemImpl>
(Explicit) struct implementations
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Anon
impl RefUnwindSafe for Anon
impl !Send for Anon
impl !Sync for Anon
impl Unpin for Anon
impl UnwindSafe for Anon
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