pub struct LayerBlockArray<T>(pub [[T; 16]; 16]);
Expand description
Generic array for data stored per block of a chunk layer
Includes various convenient iteration functions.
Tuple Fields§
§0: [[T; 16]; 16]
Trait Implementations§
Source§impl<'__de, T, __Context> BorrowDecode<'__de, __Context> for LayerBlockArray<T>where
T: BorrowDecode<'__de, __Context>,
impl<'__de, T, __Context> BorrowDecode<'__de, __Context> for LayerBlockArray<T>where
T: BorrowDecode<'__de, __Context>,
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<T: Clone> Clone for LayerBlockArray<T>
impl<T: Clone> Clone for LayerBlockArray<T>
Source§fn clone(&self) -> LayerBlockArray<T>
fn clone(&self) -> LayerBlockArray<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for LayerBlockArray<T>
impl<T: Debug> Debug for LayerBlockArray<T>
Source§impl<T, __Context> Decode<__Context> for LayerBlockArray<T>where
T: Decode<__Context>,
impl<T, __Context> Decode<__Context> for LayerBlockArray<T>where
T: Decode<__Context>,
Source§impl<T: Default> Default for LayerBlockArray<T>
impl<T: Default> Default for LayerBlockArray<T>
Source§fn default() -> LayerBlockArray<T>
fn default() -> LayerBlockArray<T>
Returns the “default value” for a type. Read more
Source§impl<T> Encode for LayerBlockArray<T>where
T: Encode,
impl<T> Encode for LayerBlockArray<T>where
T: Encode,
Source§impl<T> Index<LayerBlockCoords> for LayerBlockArray<T>
impl<T> Index<LayerBlockCoords> for LayerBlockArray<T>
Source§impl<T> IndexMut<LayerBlockCoords> for LayerBlockArray<T>
impl<T> IndexMut<LayerBlockCoords> for LayerBlockArray<T>
impl<T: Copy> Copy for LayerBlockArray<T>
Auto Trait Implementations§
impl<T> Freeze for LayerBlockArray<T>where
T: Freeze,
impl<T> RefUnwindSafe for LayerBlockArray<T>where
T: RefUnwindSafe,
impl<T> Send for LayerBlockArray<T>where
T: Send,
impl<T> Sync for LayerBlockArray<T>where
T: Sync,
impl<T> Unpin for LayerBlockArray<T>where
T: Unpin,
impl<T> UnwindSafe for LayerBlockArray<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more