pub struct EmptySubgridV1;Expand description
A subgrid type that is always empty.
Trait Implementations§
Source§impl Clone for EmptySubgridV1
impl Clone for EmptySubgridV1
Source§fn clone(&self) -> EmptySubgridV1
fn clone(&self) -> EmptySubgridV1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for EmptySubgridV1
impl Default for EmptySubgridV1
Source§fn default() -> EmptySubgridV1
fn default() -> EmptySubgridV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmptySubgridV1
impl<'de> Deserialize<'de> for EmptySubgridV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EmptySubgridV1> for SubgridEnum
impl From<EmptySubgridV1> for SubgridEnum
Source§fn from(v: EmptySubgridV1) -> SubgridEnum
fn from(v: EmptySubgridV1) -> SubgridEnum
Converts to this type from the input type.
Source§impl Serialize for EmptySubgridV1
impl Serialize for EmptySubgridV1
Source§impl Subgrid for EmptySubgridV1
impl Subgrid for EmptySubgridV1
Source§fn fill(&mut self, _: &[Interp], _: &[f64], _: f64)
fn fill(&mut self, _: &[Interp], _: &[f64], _: f64)
Fill the subgrid with
weight that is being interpolated with interps using the
kinematic information in ntuple. The parameter ntuple assumes the same ordering given
by kinematics in Grid::new that was used to create the grid.Source§fn merge_impl(&mut self, subgrid: &SubgridEnum, _: Option<(usize, usize)>)
fn merge_impl(&mut self, subgrid: &SubgridEnum, _: Option<(usize, usize)>)
Merge
other into this subgrid, possibly transposing the two dimensions given by
transpose.Source§fn symmetrize(&mut self, _: usize, _: usize)
fn symmetrize(&mut self, _: usize, _: usize)
Assume that the convolution functions for indices
a and b for this grid are the same
and use this to optimize the size of the grid.Source§fn indexed_iter(&self) -> SubgridIndexedIter<'_>
fn indexed_iter(&self) -> SubgridIndexedIter<'_>
Return an iterator over all non-zero elements of the subgrid.
Source§fn optimize_nodes(&mut self)
fn optimize_nodes(&mut self)
TODO
Source§impl TryInto<EmptySubgridV1> for SubgridEnum
impl TryInto<EmptySubgridV1> for SubgridEnum
Auto Trait Implementations§
impl Freeze for EmptySubgridV1
impl RefUnwindSafe for EmptySubgridV1
impl Send for EmptySubgridV1
impl Sync for EmptySubgridV1
impl Unpin for EmptySubgridV1
impl UnsafeUnpin for EmptySubgridV1
impl UnwindSafe for EmptySubgridV1
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