Skip to main content

PixelReport

Struct PixelReport 

Source
pub struct PixelReport {
Show 16 fields pub offscreens: usize, pub stored: usize, pub kinds: BTreeMap<String, usize>, pub attribute_errors: usize, pub attribute_round_trip_failures: usize, pub payload_errors: usize, pub payload_round_trip_failures: usize, pub block_size_table_mismatches: usize, pub blocks: usize, pub stored_blocks: usize, pub checksum_mismatches: usize, pub decode_errors: usize, pub reencoded_identical: usize, pub reencoded_identical_default: usize, pub reencoded_different: usize, pub first_error: Option<String>,
}
Expand description

Raster pixels (Offscreen rows and their block data).

Fields§

§offscreens: usize

Offscreen rows.

§stored: usize

Offscreens whose block data chunk is stored.

§kinds: BTreeMap<String, usize>

Offscreens per pixel kind (color, gray, monochrome, alpha, unknown).

§attribute_errors: usize

Attribute blobs that could not be parsed.

§attribute_round_trip_failures: usize

Attribute blobs not written back byte for byte.

§payload_errors: usize

Block data that could not be parsed or has the wrong number of blocks.

§payload_round_trip_failures: usize

Block data not written back byte for byte.

§block_size_table_mismatches: usize

Block data whose block sizes differ from the attribute’s size table.

§blocks: usize

Blocks in the grids of all offscreens.

§stored_blocks: usize

Blocks with stored (compressed) pixels.

§checksum_mismatches: usize

Blocks whose stored checksum is wrong.

§decode_errors: usize

Blocks that could not be inflated or have the wrong size.

§reencoded_identical: usize

Blocks compressed again to the same bytes, with CSP’s zlib settings.

§reencoded_identical_default: usize

Blocks equal to zlib’s default settings instead (material brush tips).

§reencoded_different: usize

Blocks equal to neither.

§first_error: Option<String>

The first problem found, for diagnosis.

Trait Implementations§

Source§

impl Clone for PixelReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PixelReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PixelReport

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Serialize for PixelReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.