pub enum SpineLaw {
Linear(f64),
Through(Vec<(f64, f64)>),
Function(SpineFunction),
}Expand description
How a quantity runs along a pipe’s spine, against the share of the spine’s length run: from its value at the start (one for a scale, naught for a twist) at a share of naught.
Variants§
Linear(f64)
Linearly to this value at the spine’s end.
Through(Vec<(f64, f64)>)
Through these (share, value) points, the shares rising strictly
and the last of them one, the spine’s end. Between two neighbouring
points the law is the cubic that keeps between their values, and it
runs on through each point with one slope (the monotone cubic
Hermite interpolant): a value the points never leave, the law never
leaves either.
Function(SpineFunction)
The value the function gives at each share, from naught to one. It gives the start value at naught exactly. The sweep reads it at its stations and wherever it checks its skin between them, and holds the skin to the tolerance against what it reads there; it is to be continuous over the spine, and a scale law above naught all along.
Trait Implementations§
impl StructuralPartialEq for SpineLaw
Auto Trait Implementations§
impl !RefUnwindSafe for SpineLaw
impl !UnwindSafe for SpineLaw
impl Freeze for SpineLaw
impl Send for SpineLaw
impl Sync for SpineLaw
impl Unpin for SpineLaw
impl UnsafeUnpin for SpineLaw
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.