[−][src]Struct building_blocks_storage::chunk_map::Chunk
One piece of the ChunkMap
. Contains both some generic metadata and the data for each
point in the chunk extent.
Fields
metadata: M
array: ArrayN<N, T>
Implementations
impl<N, T> Chunk<N, T, ()>
[src]
pub fn with_array(array: ArrayN<N, T>) -> Self
[src]
Constructs a chunk without metadata.
Trait Implementations
impl<N: Clone, T: Clone, M: Clone> Clone for Chunk<N, T, M>
[src]
impl<N, T, M> Compressible<FastLz4> for Chunk<N, T, M> where
T: Copy,
M: Clone,
ExtentN<N>: IntegerExtent<N>,
[src]
T: Copy,
M: Clone,
ExtentN<N>: IntegerExtent<N>,
type Compressed = FastCompressedChunk<N, T, M>
fn compress(&self, params: FastLz4) -> Self::Compressed
[src]
impl<'de, N, T, M> Deserialize<'de> for Chunk<N, T, M> where
N: Deserialize<'de>,
T: Deserialize<'de>,
M: Deserialize<'de>,
[src]
N: Deserialize<'de>,
T: Deserialize<'de>,
M: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<N, T, M> Serialize for Chunk<N, T, M> where
N: Serialize,
T: Serialize,
M: Serialize,
[src]
N: Serialize,
T: Serialize,
M: Serialize,
Auto Trait Implementations
impl<N, T, M> RefUnwindSafe for Chunk<N, T, M> where
M: RefUnwindSafe,
N: RefUnwindSafe,
T: RefUnwindSafe,
M: RefUnwindSafe,
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T, M> Send for Chunk<N, T, M> where
M: Send,
N: Send,
T: Send,
M: Send,
N: Send,
T: Send,
impl<N, T, M> Sync for Chunk<N, T, M> where
M: Sync,
N: Sync,
T: Sync,
M: Sync,
N: Sync,
T: Sync,
impl<N, T, M> Unpin for Chunk<N, T, M> where
M: Unpin,
N: Unpin,
T: Unpin,
M: Unpin,
N: Unpin,
T: Unpin,
impl<N, T, M> UnwindSafe for Chunk<N, T, M> where
M: UnwindSafe,
N: UnwindSafe,
T: UnwindSafe,
M: UnwindSafe,
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Compressible<BincodeLz4> for T where
T: DeserializeOwned + Serialize,
[src]
T: DeserializeOwned + Serialize,
type Compressed = BincodeLz4Compressed<T>
pub fn compress(
&self,
params: BincodeLz4
) -> <T as Compressible<BincodeLz4>>::Compressed
[src]
&self,
params: BincodeLz4
) -> <T as Compressible<BincodeLz4>>::Compressed
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,