pub struct ClosureIndexCache<O> { /* private fields */ }Expand description
Cache for repeated closure-index construction.
Implementations§
Source§impl<O> ClosureIndexCache<O>
impl<O> ClosureIndexCache<O>
Sourcepub fn get_or_build<T, V, Sct, Sym>(
&mut self,
topology: &T,
section: &Section<V, Sct>,
cell: PointId,
topology_version: TopologyVersion,
order: &ClosureOrder,
sym: &Sym,
) -> Result<&ClosureIndex<O>, MeshSieveError>
pub fn get_or_build<T, V, Sct, Sym>( &mut self, topology: &T, section: &Section<V, Sct>, cell: PointId, topology_version: TopologyVersion, order: &ClosureOrder, sym: &Sym, ) -> Result<&ClosureIndex<O>, MeshSieveError>
Return a cached index or build and insert it.
Source§impl ClosureIndexCache<()>
impl ClosureIndexCache<()>
Sourcepub fn get_or_build_unoriented<T, V, Sct, Sym>(
&mut self,
topology: &T,
section: &Section<V, Sct>,
cell: PointId,
topology_version: TopologyVersion,
order: &ClosureOrder,
sym: &Sym,
) -> Result<&ClosureIndex<()>, MeshSieveError>
pub fn get_or_build_unoriented<T, V, Sct, Sym>( &mut self, topology: &T, section: &Section<V, Sct>, cell: PointId, topology_version: TopologyVersion, order: &ClosureOrder, sym: &Sym, ) -> Result<&ClosureIndex<()>, MeshSieveError>
Return a cached non-oriented index or build and insert it.
Trait Implementations§
Source§impl<O: Clone> Clone for ClosureIndexCache<O>
impl<O: Clone> Clone for ClosureIndexCache<O>
Source§fn clone(&self) -> ClosureIndexCache<O>
fn clone(&self) -> ClosureIndexCache<O>
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<O: Debug> Debug for ClosureIndexCache<O>
impl<O: Debug> Debug for ClosureIndexCache<O>
Source§impl<O: Default> Default for ClosureIndexCache<O>
impl<O: Default> Default for ClosureIndexCache<O>
Source§fn default() -> ClosureIndexCache<O>
fn default() -> ClosureIndexCache<O>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<O> Freeze for ClosureIndexCache<O>
impl<O> RefUnwindSafe for ClosureIndexCache<O>where
O: RefUnwindSafe,
impl<O> Send for ClosureIndexCache<O>where
O: Send,
impl<O> Sync for ClosureIndexCache<O>where
O: Sync,
impl<O> Unpin for ClosureIndexCache<O>where
O: Unpin,
impl<O> UnsafeUnpin for ClosureIndexCache<O>
impl<O> UnwindSafe for ClosureIndexCache<O>where
O: UnwindSafe,
Blanket Implementations§
Source§impl<T> AccumulatePathExt for T
impl<T> AccumulatePathExt for T
fn accumulate_path<O, I>(path: I) -> Owhere
O: Orientation,
I: IntoIterator<Item = O>,
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