Struct pmd_wan::ImageBytes
source · [−]Fields
mixed_pixels: Vec<u8>
z_index: u32
Implementations
sourceimpl ImageBytes
impl ImageBytes
pub fn new_from_bytes<F: Read + Seek>(
file: &mut F
) -> Result<ImageBytes, WanError>
pub fn write<F: Write + Seek>(
&self,
file: &mut F,
sprite_type: SpriteType
) -> Result<(u64, Vec<u64>), WanError>
pub fn get_image(
&self,
palette: &Palette,
resolution: &Resolution,
palette_id: u16
) -> Result<ImageBuffer<Rgba<u8>, Vec<u8>>, ImageBytesToImageError>
Trait Implementations
sourceimpl Debug for ImageBytes
impl Debug for ImageBytes
sourceimpl PartialEq<ImageBytes> for ImageBytes
impl PartialEq<ImageBytes> for ImageBytes
sourcefn eq(&self, other: &ImageBytes) -> bool
fn eq(&self, other: &ImageBytes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImageBytes) -> bool
fn ne(&self, other: &ImageBytes) -> bool
This method tests for !=
.
impl Eq for ImageBytes
impl StructuralEq for ImageBytes
impl StructuralPartialEq for ImageBytes
Auto Trait Implementations
impl RefUnwindSafe for ImageBytes
impl Send for ImageBytes
impl Sync for ImageBytes
impl Unpin for ImageBytes
impl UnwindSafe for ImageBytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more