pub fn copy_without_caching(
        &self,
        key: &PointN<N>,
    ) -> Option<MaybeCompressedChunk<N, T, Meta, B>>
    where
        Chunk<N, T, Meta>: Clone,
        Compressed<FastChunkCompression<N, T, Meta, B>>: Clone,
    {
        self.cache.get(key).map(|entry| match entry {
            CacheEntry::Cached(chunk) => MaybeCompressedChunk::Decompressed(chunk.clone()),
            CacheEntry::Evicted(location) => {
                MaybeCompressedChunk::Compressed(self.compressed.get(location.0).unwrap().clone())
            }
        })
    }
/// Returns a copy of the `Chunk` at `key`.
///
/// WARNING: the cache will not be updated. This method should be used for a read-modify-write workflow where it would be
/// inefficient to cache the chunk only for it to be overwritten by the modified version.
Returns a copy of the `Chunk` at `key`.
WARNING: the cache will not be updated. This method should be used for a read-modify-write workflow where it would be
inefficient to cache the chunk only for it to be overwritten by the modified version.
Returns a copy of the ` Chunk ` at ` key ` . WARNING : the cache will not be updated . This method should be used for a read - modify - write workflow where it would be inefficient to cache the chunk only for it to be overwritten by the modified version .
pub fn copy_without_caching(
        &self,
        key: &PointN<N>,
    ) -> Option<MaybeCompressedChunk<N, T, Meta, B>>
    where
        Chunk<N, T, Meta>: Clone,
        Compressed<FastChunkCompression<N, T, Meta, B>>: Clone,
    {
        self.cache.get(key).map(|entry| match entry {
            CacheEntry::Cached(chunk) => MaybeCompressedChunk::Decompressed(chunk.clone()),
            CacheEntry::Evicted(location) => {
                MaybeCompressedChunk::Compressed(self.compressed.get(location.0).unwrap().clone())
            }
        })
    }
pub fn copy_without_caching ( & self , key : & PointN < N > , ) -> Option < MaybeCompressedChunk < N , T , Meta , B > > where Chunk < N , T , Meta > : Clone , Compressed < FastChunkCompression < N , T , Meta , B > > : Clone , { self . cache . get ( key ) . map ( | entry | match entry { CacheEntry :: Cached ( chunk ) => MaybeCompressedChunk :: Decompressed ( chunk . clone ( ) ) , CacheEntry :: Evicted ( location ) => { MaybeCompressedChunk :: Compressed ( self . compressed . get ( location . 0 ) . unwrap ( ) . clone ( ) ) } } ) }
Returns a copy of the `Chunk` at `key`.
Returns a copy of the ` Chunk ` at ` key ` .
&self
key
&PointN<N>
&self
key
&PointN<N>