pub enum DerivationBindings {
Pair {
matched: Box<Value>,
differed: Box<Value>,
combine: Box<Value>,
},
Single {
at_constructor: Box<Value>,
combine: Box<Value>,
},
}Expand description
The bindings of a derivation. Which three or two there are is decided by the member’s
signature, and each is held in its own field so that none can be missing. Each is
boxed, for the reason a Value is large.
Variants§
Pair
A derivation over two values, for a member at a -> a -> R.
Single
A derivation over one value, for a member at a -> R.
Implementations§
Source§impl DerivationBindings
impl DerivationBindings
Sourcepub fn roles(&self) -> Vec<(DerivationRole, &Value)>
pub fn roles(&self) -> Vec<(DerivationRole, &Value)>
Every binding with its role, in the order the chapter lists them.
Trait Implementations§
Source§impl Clone for DerivationBindings
impl Clone for DerivationBindings
Source§fn clone(&self) -> DerivationBindings
fn clone(&self) -> DerivationBindings
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 DerivationBindings
impl Debug for DerivationBindings
Source§impl PartialEq for DerivationBindings
impl PartialEq for DerivationBindings
impl StructuralPartialEq for DerivationBindings
Auto Trait Implementations§
impl Freeze for DerivationBindings
impl RefUnwindSafe for DerivationBindings
impl Send for DerivationBindings
impl Sync for DerivationBindings
impl Unpin for DerivationBindings
impl UnsafeUnpin for DerivationBindings
impl UnwindSafe for DerivationBindings
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