[][src]Struct building_blocks_storage::chunk_map::SerializableChunkMap

pub struct SerializableChunkMap<N, T, M = ()> where
    PointN<N>: Eq + Hash
{ pub chunk_shape: PointN<N>, pub ambient_value: T, pub default_chunk_metadata: M, pub compressed_chunks: FnvHashMap<PointN<N>, BincodeLz4Compressed<Chunk<N, T, M>>>, }

Call ChunkMap::to_serializable to get this type, which is an LZ4-compressed, serde-serializable type.

Fields

chunk_shape: PointN<N>ambient_value: Tdefault_chunk_metadata: Mcompressed_chunks: FnvHashMap<PointN<N>, BincodeLz4Compressed<Chunk<N, T, M>>>

Trait Implementations

impl<'de, N, T, M> Deserialize<'de> for SerializableChunkMap<N, T, M> where
    PointN<N>: Eq + Hash,
    N: Deserialize<'de>,
    T: Deserialize<'de>,
    M: Deserialize<'de>, 
[src]

impl<N, T, M> Serialize for SerializableChunkMap<N, T, M> where
    PointN<N>: Eq + Hash,
    N: Serialize,
    T: Serialize,
    M: Serialize
[src]

Auto Trait Implementations

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

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

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

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

impl<N, T, M> UnwindSafe for SerializableChunkMap<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, 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.