pub struct TileCell {
pub tile: u32,
pub offset: usize,
}Expand description
A cell’s place in the inner chunk grid: the tile it falls in, and its offset within one frame of that tile’s decoded chunk.
Fields§
§tile: u32§offset: usizeImplementations§
Source§impl TileCell
impl TileCell
Sourcepub fn code(
&self,
layout: &ArrayLayout,
chunk: &[u16],
frame_in_chunk: u32,
) -> Result<u16, DecodeError>
pub fn code( &self, layout: &ArrayLayout, chunk: &[u16], frame_in_chunk: u32, ) -> Result<u16, DecodeError>
The cell’s code on frame frame_in_chunk of its tile’s decoded chunk
(decode_inner_chunk).
Trait Implementations§
impl Copy for TileCell
impl Eq for TileCell
impl StructuralPartialEq for TileCell
Auto Trait Implementations§
impl Forget for TileCell
impl Freeze for TileCell
impl Move for TileCell
impl RefUnwindSafe for TileCell
impl Send for TileCell
impl Sync for TileCell
impl Unpin for TileCell
impl UnsafeUnpin for TileCell
impl UnwindSafe for TileCell
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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