pub enum PointNode {
Coord {
param: usize,
axis: u8,
},
Scalar(usize),
Int(i64),
Neg(usize),
Add(usize, usize),
Sub(usize, usize),
Mul(usize, usize),
}Expand description
A node of a PointGraph: an operation on f64 values.
Variants§
Coord
A coordinate of an F64x3 parameter.
Fields
§
param: usizeIndex of the parameter in PointType::params.
Scalar(usize)
An f64 parameter, by index.
Int(i64)
An integer constant.
Neg(usize)
The negation of a node, which is exact.
Add(usize, usize)
Sum of two nodes.
Sub(usize, usize)
Difference of two nodes.
Mul(usize, usize)
Product of two nodes.
Trait Implementations§
impl Copy for PointNode
impl Eq for PointNode
Source§impl Ord for PointNode
impl Ord for PointNode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PointNode
impl PartialOrd for PointNode
impl StructuralPartialEq for PointNode
Auto Trait Implementations§
impl Forget for PointNode
impl Freeze for PointNode
impl Move for PointNode
impl RefUnwindSafe for PointNode
impl Send for PointNode
impl Sync for PointNode
impl Unpin for PointNode
impl UnsafeUnpin for PointNode
impl UnwindSafe for PointNode
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