pub struct RustPngDecoder { /* private fields */ }Available on crate features
kitty-graphics and png only.Expand description
A PNG decoder for set_png_decoder using the png crate.
use ghostty::kitty::graphics;
graphics::set_png_decoder(RustPngDecoder::new());Trait Implementations§
Source§impl Clone for RustPngDecoder
impl Clone for RustPngDecoder
Source§fn clone(&self) -> RustPngDecoder
fn clone(&self) -> RustPngDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustPngDecoder
impl Debug for RustPngDecoder
Source§impl DecodePng for RustPngDecoder
impl DecodePng for RustPngDecoder
Source§fn decode_png<'alloc>(
&mut self,
alloc: &'alloc Allocator<'_>,
data: &[u8],
) -> Option<DecodedImage<'alloc>>
fn decode_png<'alloc>( &mut self, alloc: &'alloc Allocator<'_>, data: &[u8], ) -> Option<DecodedImage<'alloc>>
Decode a PNG into 8-bit RGBA pixels. Read more
Auto Trait Implementations§
impl Freeze for RustPngDecoder
impl RefUnwindSafe for RustPngDecoder
impl Send for RustPngDecoder
impl Sync for RustPngDecoder
impl Unpin for RustPngDecoder
impl UnsafeUnpin for RustPngDecoder
impl UnwindSafe for RustPngDecoder
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