Struct broccoli_ext::cacheable_pairs::CacheSession
source · 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> 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