pub struct TraitImpl<TypeVars, Trait, Recv, Body> {
pub type_variables: TypeVars,
pub the_trait: Trait,
pub receiver: Recv,
pub body: Body,
}Expand description
The implementation declaration for a trait, applying to a certain receiver.
Fields§
§type_variables: TypeVarsThe type variables to use for the impl block itself. All type variables that appear later on the trait or the receiver must be declared here, per Rust language rules.
This field must be a sequence.
the_trait: TraitThe trait being implemented
receiver: RecvThe receiver for which it is implemented
body: BodyThe body. Use NoOp if none exists.
Trait Implementations§
Auto Trait Implementations§
impl<TypeVars, Trait, Recv, Body> Freeze for TraitImpl<TypeVars, Trait, Recv, Body>
impl<TypeVars, Trait, Recv, Body> RefUnwindSafe for TraitImpl<TypeVars, Trait, Recv, Body>
impl<TypeVars, Trait, Recv, Body> Send for TraitImpl<TypeVars, Trait, Recv, Body>
impl<TypeVars, Trait, Recv, Body> Sync for TraitImpl<TypeVars, Trait, Recv, Body>
impl<TypeVars, Trait, Recv, Body> Unpin for TraitImpl<TypeVars, Trait, Recv, Body>
impl<TypeVars, Trait, Recv, Body> UnwindSafe for TraitImpl<TypeVars, Trait, Recv, Body>
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