pub struct PngCodec;Expand description
The PNG entry in a sniffing registry.
Format detection is by magic bytes only (SPEC §Formats); PNG’s eight-byte signature is deliberately designed to survive — and detect — the transfer corruptions its §5.2 enumerates, so there is nothing else worth consulting.
Trait Implementations§
impl Copy for PngCodec
Auto Trait Implementations§
impl Freeze for PngCodec
impl RefUnwindSafe for PngCodec
impl Send for PngCodec
impl Sync for PngCodec
impl Unpin for PngCodec
impl UnsafeUnpin for PngCodec
impl UnwindSafe for PngCodec
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