pub struct DerivedRequirement {
pub class: Name,
pub part: DerivedPart,
pub argument: String,
pub missing: String,
pub function: bool,
pub declared: DeclarationSite,
}Expand description
An argument of a derived instance’s type with no instance of the derived class — see
Error::DerivedInstanceRequires.
Fields§
§class: NameThe class being derived.
part: DerivedPartWhat the argument was found in.
argument: StringThe type of the argument, as written in the type’s declaration.
missing: StringThe type that has no instance: the argument itself, or what an instance an application of it needs asks for.
function: boolWhether missing is a function type, which no instance can be declared for.
declared: DeclarationSiteWhere the type being derived for was declared, when that is in this module.
Trait Implementations§
Source§impl Clone for DerivedRequirement
impl Clone for DerivedRequirement
Source§fn clone(&self) -> DerivedRequirement
fn clone(&self) -> DerivedRequirement
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 DerivedRequirement
impl Debug for DerivedRequirement
Source§impl PartialEq for DerivedRequirement
impl PartialEq for DerivedRequirement
impl StructuralPartialEq for DerivedRequirement
Auto Trait Implementations§
impl Freeze for DerivedRequirement
impl RefUnwindSafe for DerivedRequirement
impl Send for DerivedRequirement
impl Sync for DerivedRequirement
impl Unpin for DerivedRequirement
impl UnsafeUnpin for DerivedRequirement
impl UnwindSafe for DerivedRequirement
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