pub struct DiffGraph {
pub nodes: Vec<DiffNode>,
pub root: NodeId,
pub degrees: Vec<u32>,
}Expand description
An expression graph homogeneous in differences of point coordinates.
Children come before their parents. The graph is a faithful image of the
source: 0 - x becomes Neg(x), and nothing is folded or reordered.
Fields§
§nodes: Vec<DiffNode>The nodes, in dependency order.
root: NodeIdThe node holding the value of the whole expression.
degrees: Vec<u32>Degree of each node: 1 for a leaf, the sum for a product, the common degree for a sum or difference, and the degree of its operand for a negation.
Trait Implementations§
impl Eq for DiffGraph
impl StructuralPartialEq for DiffGraph
Auto Trait Implementations§
impl Forget for DiffGraph
impl Freeze for DiffGraph
impl Move for DiffGraph
impl RefUnwindSafe for DiffGraph
impl Send for DiffGraph
impl Sync for DiffGraph
impl Unpin for DiffGraph
impl UnsafeUnpin for DiffGraph
impl UnwindSafe for DiffGraph
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