Struct type_dispatch::derive::FieldTokens
source · pub struct FieldTokens {
pub declare: TokenStream,
pub refer: TokenStream,
pub assign: TokenStream,
pub temp: TokenStream,
pub pretty_ident: TokenStream,
}
Expand description
Tokens used for generating struct fields in derived implementations.
Fields§
§declare: TokenStream
For named structs: “pub field:” For tuple structs: “pub”
refer: TokenStream
For named structs: “self.field” For tuple structs: “self.2”
assign: TokenStream
For named structs: “field:” For tuple structs: “”
temp: TokenStream
For named structs: “field” For tuple structs: “__substrate_derive_field2”
pretty_ident: TokenStream
For named structs: “field” For tuple structs: “elem2”
Auto Trait Implementations§
impl RefUnwindSafe for FieldTokens
impl !Send for FieldTokens
impl !Sync for FieldTokens
impl Unpin for FieldTokens
impl UnwindSafe for FieldTokens
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