Struct type_dispatch::derive::DeriveTrait
source · pub struct DeriveTrait {
pub trait_: TokenStream,
pub method: TokenStream,
pub extra_arg_idents: Vec<TokenStream>,
pub extra_arg_tys: Vec<TokenStream>,
}
Expand description
Configuration for deriving a trait.
Fields§
§trait_: TokenStream
The trait to be implemented.
method: TokenStream
The trait’s associated method.
extra_arg_idents: Vec<TokenStream>
Identifiers for extra arguments to the trait’s associated methods.
extra_arg_tys: Vec<TokenStream>
Types for extra arguments to the trait’s associated methods.
Auto Trait Implementations§
impl RefUnwindSafe for DeriveTrait
impl !Send for DeriveTrait
impl !Sync for DeriveTrait
impl Unpin for DeriveTrait
impl UnwindSafe for DeriveTrait
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