pub struct Tile<A, B> {
pub tile: A,
/* private fields */
}
Fields§
§tile: A
Implementations§
source§impl<A, B, N> Tile<A, B>
impl<A, B, N> Tile<A, B>
pub fn from_palettes<I>(&mut self, iter: I) -> Result<usize, PaletteError>where
I: Iterator<Item = PaletteIdx>,
Trait Implementations§
source§impl<A: PartialEq, B: PartialEq> PartialEq for Tile<A, B>
impl<A: PartialEq, B: PartialEq> PartialEq for Tile<A, B>
impl<A: Copy, B: Copy> Copy for Tile<A, B>
impl<A, B> Pod for Tile<A, B>
impl<A, B> StructuralPartialEq for Tile<A, B>
Auto Trait Implementations§
impl<A, B> RefUnwindSafe for Tile<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Tile<A, B>
impl<A, B> Sync for Tile<A, B>
impl<A, B> Unpin for Tile<A, B>
impl<A, B> UnwindSafe for Tile<A, B>where
A: UnwindSafe,
B: 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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.