[][src]Struct building_blocks_storage::chunk_map::Chunk

pub struct Chunk<N, T, M = ()> {
    pub metadata: M,
    pub array: ArrayN<N, T>,
}

One piece of the ChunkMap. Contains both some generic metadata and the data for each point in the chunk extent.

Fields

metadata: Marray: 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]

type Compressed = FastCompressedChunk<N, T, M>

impl<'de, N, T, M> Deserialize<'de> for Chunk<N, T, M> where
    N: Deserialize<'de>,
    T: Deserialize<'de>,
    M: Deserialize<'de>, 
[src]

impl<N, T, M> Serialize for Chunk<N, T, M> where
    N: Serialize,
    T: Serialize,
    M: Serialize
[src]

Auto Trait Implementations

impl<N, T, M> RefUnwindSafe for Chunk<N, T, M> where
    M: RefUnwindSafe,
    N: RefUnwindSafe,
    T: RefUnwindSafe

impl<N, T, M> Send for Chunk<N, T, M> where
    M: Send,
    N: Send,
    T: Send

impl<N, T, M> Sync for Chunk<N, T, M> where
    M: Sync,
    N: Sync,
    T: Sync

impl<N, T, M> Unpin for Chunk<N, T, M> where
    M: Unpin,
    N: Unpin,
    T: Unpin

impl<N, T, M> UnwindSafe for Chunk<N, T, M> where
    M: UnwindSafe,
    N: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Compressible<BincodeLz4> for T where
    T: DeserializeOwned + Serialize
[src]

type Compressed = BincodeLz4Compressed<T>

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.