pub enum DiffNode {
Leaf {
axis: u8,
minuend: usize,
subtrahend: usize,
},
Neg(NodeId),
Add(NodeId, NodeId),
Sub(NodeId, NodeId),
Mul(NodeId, NodeId),
}Expand description
One node of a DiffGraph.
Variants§
Leaf
The difference minuend.axis - subtrahend.axis of one coordinate of
two different points, given as parameter indices.
Fields
Neg(NodeId)
Negation of a node, with the degree of its operand.
Add(NodeId, NodeId)
Sum of two nodes of the same degree.
Sub(NodeId, NodeId)
Difference of two nodes of the same degree.
Mul(NodeId, NodeId)
Product of two nodes.
Trait Implementations§
impl Copy for DiffNode
impl Eq for DiffNode
impl StructuralPartialEq for DiffNode
Auto Trait Implementations§
impl Forget for DiffNode
impl Freeze for DiffNode
impl Move for DiffNode
impl RefUnwindSafe for DiffNode
impl Send for DiffNode
impl Sync for DiffNode
impl Unpin for DiffNode
impl UnsafeUnpin for DiffNode
impl UnwindSafe for DiffNode
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