pub struct Derivation {
pub member: Name,
pub result: Type,
pub bindings: DerivationBindings,
pub span: NodeSpan,
}Expand description
A derivation in a class body, once it has passed the checks a derivation is held to:
derived eq and the bindings under it.
Fields§
§member: NameThe member it is for.
result: TypeR, the type the member answers with: what matched, atConstructor and
combine produce, and the type of the member’s signature once its class-variable
parameters are taken off.
bindings: DerivationBindingsThe bindings the member’s signature calls for, canonicalized as ordinary values.
span: NodeSpanWhere derived name was written.
Trait Implementations§
Source§impl Clone for Derivation
impl Clone for Derivation
Source§fn clone(&self) -> Derivation
fn clone(&self) -> Derivation
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 Derivation
impl Debug for Derivation
Source§impl PartialEq for Derivation
impl PartialEq for Derivation
impl StructuralPartialEq for Derivation
Auto Trait Implementations§
impl Freeze for Derivation
impl RefUnwindSafe for Derivation
impl Send for Derivation
impl Sync for Derivation
impl Unpin for Derivation
impl UnsafeUnpin for Derivation
impl UnwindSafe for Derivation
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