pub struct DerivedContextGap {
pub class: Name,
pub missing: String,
pub part: DerivedPart,
pub argument: String,
}Expand description
A constraint a derived instance needs and the context written on it does not provide —
see Error::DerivedInstanceContextTooNarrow.
Fields§
§class: NameThe class being derived.
missing: StringThe constraint the context does not provide, as a context writes it: Eq a.
part: DerivedPartThe first argument that needs it was found in this.
argument: StringThe type of that argument, as written in the type’s declaration.
Trait Implementations§
Source§impl Clone for DerivedContextGap
impl Clone for DerivedContextGap
Source§fn clone(&self) -> DerivedContextGap
fn clone(&self) -> DerivedContextGap
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 DerivedContextGap
impl Debug for DerivedContextGap
Source§impl PartialEq for DerivedContextGap
impl PartialEq for DerivedContextGap
impl StructuralPartialEq for DerivedContextGap
Auto Trait Implementations§
impl Freeze for DerivedContextGap
impl RefUnwindSafe for DerivedContextGap
impl Send for DerivedContextGap
impl Sync for DerivedContextGap
impl Unpin for DerivedContextGap
impl UnsafeUnpin for DerivedContextGap
impl UnwindSafe for DerivedContextGap
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