pub struct PngEnvelope { /* private fields */ }Expand description
The shape of the file a container arrived in.
Travels with the samples it was read from — see
crate::image_io::buffer::ImageBuffer::envelope — so that the writing side
can reproduce it without any intermediate layer having to carry it.
Implementations§
Source§impl PngEnvelope
impl PngEnvelope
Sourcepub fn preserved_chunks(&self) -> &[PreservedChunk]
pub fn preserved_chunks(&self) -> &[PreservedChunk]
The whitelisted chunks, in the order they will be written.
Sourcepub fn idat_chunk_size(&self) -> usize
pub fn idat_chunk_size(&self) -> usize
Bytes of compressed pixel data per IDAT chunk.
Sourcepub fn idat_chunk_count(&self) -> usize
pub fn idat_chunk_count(&self) -> usize
How many IDAT chunks the container was read from.
Zero for an envelope that was chosen rather than observed, which is the case for every container this crate draws itself.
Sourcepub fn discarded_chunks(&self) -> usize
pub fn discarded_chunks(&self) -> usize
Ancillary chunks that were present and will not be reproduced.
The size of the residue, in the only unit that can be counted without keeping the chunks themselves: this is what a reader would notice missing from the file, and most of it is the metadata that is dropped on purpose.
Trait Implementations§
Source§impl Clone for PngEnvelope
impl Clone for PngEnvelope
Source§fn clone(&self) -> PngEnvelope
fn clone(&self) -> PngEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PngEnvelope
impl RefUnwindSafe for PngEnvelope
impl Send for PngEnvelope
impl Sync for PngEnvelope
impl Unpin for PngEnvelope
impl UnsafeUnpin for PngEnvelope
impl UnwindSafe for PngEnvelope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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