pub struct CacheSession<'a, C> { /* private fields */ }Expand description
Start a caching session.
Implementations§
Source§impl<'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>
Source§impl<'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> Freeze for CacheSession<'a, C>
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§
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