pub struct CurvePoint {
pub x: f64,
pub y: f64,
}Expand description
A single (x, y) sample point on a curve.
Fields§
§x: f64The independent-axis value (e.g. flow rate for a pump head curve).
y: f64The dependent-axis value (e.g. head gain for a pump head curve).
Trait Implementations§
Source§impl Clone for CurvePoint
impl Clone for CurvePoint
Source§fn clone(&self) -> CurvePoint
fn clone(&self) -> CurvePoint
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 moreimpl Copy for CurvePoint
Source§impl Debug for CurvePoint
impl Debug for CurvePoint
Source§impl PartialEq for CurvePoint
impl PartialEq for CurvePoint
Source§fn eq(&self, other: &CurvePoint) -> bool
fn eq(&self, other: &CurvePoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CurvePoint
Auto Trait Implementations§
impl Freeze for CurvePoint
impl RefUnwindSafe for CurvePoint
impl Send for CurvePoint
impl Sync for CurvePoint
impl Unpin for CurvePoint
impl UnsafeUnpin for CurvePoint
impl UnwindSafe for CurvePoint
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