pub enum NumericResponse<'a> {
Borrowed(&'a [f64]),
Owned(Vec<f64>),
Weighted {
values: NumericCol<'a>,
weights: NumericCol<'a>,
},
}Expand description
Response storage used by compiled formula models.
Variants§
Borrowed(&'a [f64])
Borrowed response storage.
Owned(Vec<f64>)
Owned response storage.
Weighted
Response with observation weights.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for NumericResponse<'a>
impl<'a> Clone for NumericResponse<'a>
Source§fn clone(&self) -> NumericResponse<'a>
fn clone(&self) -> NumericResponse<'a>
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 moreSource§impl<'a> Debug for NumericResponse<'a>
impl<'a> Debug for NumericResponse<'a>
Source§impl<'row> ObservationView<'row> for NumericResponse<'_>
impl<'row> ObservationView<'row> for NumericResponse<'_>
Source§type Observation = f64
type Observation = f64
Observation representation returned for one row.
Source§fn observation_at(&'row self, row: usize) -> Self::Observation
fn observation_at(&'row self, row: usize) -> Self::Observation
Observation value for
row.Source§impl<'a> PartialEq for NumericResponse<'a>
impl<'a> PartialEq for NumericResponse<'a>
Source§fn eq(&self, other: &NumericResponse<'a>) -> bool
fn eq(&self, other: &NumericResponse<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for NumericResponse<'a>
Auto Trait Implementations§
impl<'a> Freeze for NumericResponse<'a>
impl<'a> RefUnwindSafe for NumericResponse<'a>
impl<'a> Send for NumericResponse<'a>
impl<'a> Sync for NumericResponse<'a>
impl<'a> Unpin for NumericResponse<'a>
impl<'a> UnsafeUnpin for NumericResponse<'a>
impl<'a> UnwindSafe for NumericResponse<'a>
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