pub struct QuadPngEncoding<const RESOLUTION_DIVIDER: u32>();Trait Implementations§
Source§impl<const RESOLUTION_DIVIDER: u32> Clone for QuadPngEncoding<RESOLUTION_DIVIDER>
 
impl<const RESOLUTION_DIVIDER: u32> Clone for QuadPngEncoding<RESOLUTION_DIVIDER>
Source§fn clone(&self) -> QuadPngEncoding<RESOLUTION_DIVIDER>
 
fn clone(&self) -> QuadPngEncoding<RESOLUTION_DIVIDER>
Returns a duplicate 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<const RESOLUTION_DIVIDER: u32> Debug for QuadPngEncoding<RESOLUTION_DIVIDER>
 
impl<const RESOLUTION_DIVIDER: u32> Debug for QuadPngEncoding<RESOLUTION_DIVIDER>
Source§impl<'de, const RESOLUTION_DIVIDER: u32> Deserialize<'de> for QuadPngEncoding<RESOLUTION_DIVIDER>
 
impl<'de, const RESOLUTION_DIVIDER: u32> Deserialize<'de> for QuadPngEncoding<RESOLUTION_DIVIDER>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const RESOLUTION_DIVIDER: u32> Serialize for QuadPngEncoding<RESOLUTION_DIVIDER>
 
impl<const RESOLUTION_DIVIDER: u32> Serialize for QuadPngEncoding<RESOLUTION_DIVIDER>
Source§impl<const N: u32> VoxelImageDecoding for QuadPngEncoding<N>
 
impl<const N: u32> VoxelImageDecoding for QuadPngEncoding<N>
Source§impl<const N: u32> VoxelImageEncoding for QuadPngEncoding<N>
 
impl<const N: u32> VoxelImageEncoding for QuadPngEncoding<N>
type Output = CompressedData<(Vec<u8>, [usize; 3], Vec<[u8; 3]>)>
type Workspace = (ImageBuffer<Luma<u8>, Vec<u8>>, ImageBuffer<Luma<u8>, Vec<u8>>, ImageBuffer<Luma<u8>, Vec<u8>>, ImageBuffer<Rgb<u8>, Vec<u8>>, Vec<[u8; 3]>, HashMap<[u8; 3], u16>)
fn create(width: u32, height: u32) -> Self::Workspace
fn put_solid( &self, ws: &mut Self::Workspace, x: u32, y: u32, kind: BlockKind, rgb: Rgb<u8>, )
fn put_sprite( &self, ws: &mut Self::Workspace, x: u32, y: u32, kind: BlockKind, sprite_data: [u8; 3], )
fn finish(ws: &Self::Workspace) -> Option<Self::Output>
impl<const RESOLUTION_DIVIDER: u32> Copy for QuadPngEncoding<RESOLUTION_DIVIDER>
Auto Trait Implementations§
impl<const RESOLUTION_DIVIDER: u32> Freeze for QuadPngEncoding<RESOLUTION_DIVIDER>
impl<const RESOLUTION_DIVIDER: u32> RefUnwindSafe for QuadPngEncoding<RESOLUTION_DIVIDER>
impl<const RESOLUTION_DIVIDER: u32> Send for QuadPngEncoding<RESOLUTION_DIVIDER>
impl<const RESOLUTION_DIVIDER: u32> Sync for QuadPngEncoding<RESOLUTION_DIVIDER>
impl<const RESOLUTION_DIVIDER: u32> Unpin for QuadPngEncoding<RESOLUTION_DIVIDER>
impl<const RESOLUTION_DIVIDER: u32> UnwindSafe for QuadPngEncoding<RESOLUTION_DIVIDER>
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<C, M> ConvertSaveload<M> for C
 
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
 
type Error = Infallible
Error may occur during serialization or deserialization of component
§fn convert_into<F>(
    &self,
    _: F,
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
 
fn convert_into<F>( &self, _: F, ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Convert this data type into serializable form (
Data) using
entity to marker mapping function§fn convert_from<F>(
    data: <C as ConvertSaveload<M>>::Data,
    _: F,
) -> Result<C, <C as ConvertSaveload<M>>::Error>
 
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F, ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Convert this data from a deserializable form (
Data) using
entity to marker mapping function§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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