pub struct InverseStencilMap { /* private fields */ }Expand description
Transpose of a single StencilTable.
affected_outputs maps a set of changed input
indices to the sorted, unique set of output rows whose stencils reference any
of them.
Implementations§
Source§impl InverseStencilMap
impl InverseStencilMap
Sourcepub fn output_count(&self) -> usize
pub fn output_count(&self) -> usize
Number of output rows of the original table.
Sourcepub fn affected_outputs(&self, changed_inputs: &[u32]) -> Vec<u32>
pub fn affected_outputs(&self, changed_inputs: &[u32]) -> Vec<u32>
Output rows affected by changing changed_inputs, sorted ascending with
duplicates removed. Input indices that no output references (or that are
out of range) contribute nothing.
Trait Implementations§
Source§impl Clone for InverseStencilMap
impl Clone for InverseStencilMap
Source§fn clone(&self) -> InverseStencilMap
fn clone(&self) -> InverseStencilMap
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 Debug for InverseStencilMap
impl Debug for InverseStencilMap
Source§impl<'a> From<&'a StencilTable> for InverseStencilMap
impl<'a> From<&'a StencilTable> for InverseStencilMap
Source§fn from(table: &'a StencilTable) -> Self
fn from(table: &'a StencilTable) -> Self
Build the inverse (transpose) of table in a single pass over its
entries.
Auto Trait Implementations§
impl Freeze for InverseStencilMap
impl RefUnwindSafe for InverseStencilMap
impl Send for InverseStencilMap
impl Sync for InverseStencilMap
impl Unpin for InverseStencilMap
impl UnsafeUnpin for InverseStencilMap
impl UnwindSafe for InverseStencilMap
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