pub enum DerivedPart {
Variant(Name),
Element(usize),
}Expand description
The part of a type a walk found an argument in: where a requirement of a derived instance came from.
Variants§
Variant(Name)
An argument of a variant of a union.
Element(usize)
An element of a tuple, counting from one.
Trait Implementations§
Source§impl Clone for DerivedPart
impl Clone for DerivedPart
Source§fn clone(&self) -> DerivedPart
fn clone(&self) -> DerivedPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DerivedPart
impl Debug for DerivedPart
Source§impl PartialEq for DerivedPart
impl PartialEq for DerivedPart
impl StructuralPartialEq for DerivedPart
Auto Trait Implementations§
impl Freeze for DerivedPart
impl RefUnwindSafe for DerivedPart
impl Send for DerivedPart
impl Sync for DerivedPart
impl Unpin for DerivedPart
impl UnsafeUnpin for DerivedPart
impl UnwindSafe for DerivedPart
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