Struct BaseCorrelationView
pub struct BaseCorrelationView<'a, R: Scalar> {
data: &'a BaseCorrelation,
params: Cow<'a, [R]>,
}Expand description
A base-correlation curve read in mode R: its attachment points, and its
correlations as lifted parameters.
Fields§
§data: &'a BaseCorrelation§params: Cow<'a, [R]>Implementations§
§impl<'a, R: Scalar> BaseCorrelationView<'a, R>
impl<'a, R: Scalar> BaseCorrelationView<'a, R>
pub fn correlation(&self, attachment: f64) -> R
pub fn correlation(&self, attachment: f64) -> R
The correlation at attachment, carrying the adjoints of the two
points it interpolates between (one beyond either end).
pub fn parameters(&self) -> &[R]
pub fn parameters(&self) -> &[R]
The lifted correlations, in point order.
pub fn passive(&self) -> BaseCorrelationView<'a, f64>
pub fn passive(&self) -> BaseCorrelationView<'a, f64>
This view at the passive mode, on the stored correlations.
Trait Implementations§
§impl<'a, R: Clone + Scalar> Clone for BaseCorrelationView<'a, R>
impl<'a, R: Clone + Scalar> Clone for BaseCorrelationView<'a, R>
§fn clone(&self) -> BaseCorrelationView<'a, R>
fn clone(&self) -> BaseCorrelationView<'a, R>
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 moreAuto Trait Implementations§
impl<'a, R> Freeze for BaseCorrelationView<'a, R>
impl<'a, R> RefUnwindSafe for BaseCorrelationView<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for BaseCorrelationView<'a, R>
impl<'a, R> Sync for BaseCorrelationView<'a, R>
impl<'a, R> Unpin for BaseCorrelationView<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for BaseCorrelationView<'a, R>
impl<'a, R> UnwindSafe for BaseCorrelationView<'a, R>where
R: RefUnwindSafe + UnwindSafe,
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