pub struct GridView<'a> { /* private fields */ }Expand description
A validated, borrowed view of a strictly increasing sampling grid.
Implementations§
Source§impl<'a> GridView<'a>
impl<'a> GridView<'a>
Sourcepub fn new(values: &'a [f64]) -> Result<Self, ProfileError>
pub fn new(values: &'a [f64]) -> Result<Self, ProfileError>
Validate and borrow a sampling grid.
§Errors
Returns ProfileError if a coordinate is non-finite or the grid is
not strictly increasing.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GridView<'a>
impl<'a> RefUnwindSafe for GridView<'a>
impl<'a> Send for GridView<'a>
impl<'a> Sync for GridView<'a>
impl<'a> Unpin for GridView<'a>
impl<'a> UnsafeUnpin for GridView<'a>
impl<'a> UnwindSafe for GridView<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more