pub enum ImplOrTrait<'__> {
DefaultMethod {
trait_name: &'__ Ident,
},
ImplMethod {
implementor: &'__ Type,
trait_name: Option<&'__ Path>,
},
}Variants§
DefaultMethod
Default implementation of methods within a trait definition.
ImplMethod
An implementation of methods within an impl block.
Trait Implementations§
Source§impl<'__> Clone for ImplOrTrait<'__>
impl<'__> Clone for ImplOrTrait<'__>
Source§fn clone(&self) -> ImplOrTrait<'__>
fn clone(&self) -> ImplOrTrait<'__>
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 moreimpl<'__> Copy for ImplOrTrait<'__>
Auto Trait Implementations§
impl<'__> Freeze for ImplOrTrait<'__>
impl<'__> RefUnwindSafe for ImplOrTrait<'__>
impl<'__> !Send for ImplOrTrait<'__>
impl<'__> !Sync for ImplOrTrait<'__>
impl<'__> Unpin for ImplOrTrait<'__>
impl<'__> UnsafeUnpin for ImplOrTrait<'__>
impl<'__> UnwindSafe for ImplOrTrait<'__>
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