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
Source§fn clone(&self) -> MethodImpl
fn clone(&self) -> MethodImpl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MethodImpl
impl RefUnwindSafe for MethodImpl
impl Send for MethodImpl
impl Sync 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