pub struct Point {
pub rate: f64,
pub price: f64,
}
Expand description
A representation of a point for use in defining piecewise-linear curves
Each point consists of:
- A rate (quantity per time unit)
- A price (value per unit)
Points are used to define the vertices of piecewise-linear demand curves.
Fields§
§rate: f64
The rate (quantity per time) coordinate
price: f64
The price (value per unit) coordinate
Trait Implementations§
Source§impl PartialOrd for Point
impl PartialOrd for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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