Struct broccoli_ext::cachable_pairs::CacheSession
source · [−]pub struct CacheSession<'a, C> { /* private fields */ }Expand description
Start a caching session.
Implementations
sourceimpl<'a, C> CacheSession<'a, C>
impl<'a, C> CacheSession<'a, C>
sourceimpl<'a, C: TrustedIterAll> CacheSession<'a, C>
impl<'a, C: TrustedIterAll> CacheSession<'a, C>
pub fn cache_elems<D>(
&mut self,
func: impl FnMut(&mut C::T) -> Option<D>
) -> FilterCache<'a, C, D>
sourceimpl<'a, C: TrustedCollisionPairs> CacheSession<'a, C>
impl<'a, C: TrustedCollisionPairs> CacheSession<'a, C>
pub fn cache_colliding_pairs<D>(
&mut self,
func: impl FnMut(&mut C::T, &mut C::T) -> Option<D>
) -> CollidingPairsCache<'a, C, D>
pub fn finish(self) -> &'a mut C
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for CacheSession<'a, C> where
C: RefUnwindSafe,
impl<'a, C> Send for CacheSession<'a, C> where
C: Send,
impl<'a, C> Sync for CacheSession<'a, C> where
C: Sync,
impl<'a, C> Unpin for CacheSession<'a, C>
impl<'a, C> !UnwindSafe for CacheSession<'a, C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more