pub struct MethodImpl {
pub method_name: Name,
pub impl_expr: Expr,
pub is_default: bool,
}Expand description
A method implementation override for derived instances.
Fields§
§method_name: NameMethod name.
impl_expr: ExprImplementation expression.
is_default: boolWhether this uses a default implementation.
Implementations§
Trait Implementations§
Source§impl Clone for MethodImpl
impl Clone for MethodImpl
Auto Trait Implementations§
impl !Send for MethodImpl
impl !Sync for MethodImpl
impl Forget for MethodImpl
impl Freeze for MethodImpl
impl Move for MethodImpl
impl RefUnwindSafe for MethodImpl
impl Unpin for MethodImpl
impl UnsafeUnpin for MethodImpl
impl UnwindSafe for MethodImpl
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