pub struct DecodeLimits {
pub max_pixels: u64,
pub max_tiles: u32,
pub max_decompressed: u64,
}Expand description
Configurable ceilings for MNF6/MNF7/MNF8 decoding (mirror of codec::DecodeLimits; the same limit semantics at the header-validation points). Defaults = the format-derived maxima (identical to codec’s).
Fields§
§max_pixels: u64Max total pixels (w*h).
max_tiles: u32Max tiles.
max_decompressed: u64Max decompressed payload bytes.
Trait Implementations§
Source§impl Clone for DecodeLimits
impl Clone for DecodeLimits
impl Copy for DecodeLimits
Source§impl Debug for DecodeLimits
impl Debug for DecodeLimits
Auto Trait Implementations§
impl Freeze for DecodeLimits
impl RefUnwindSafe for DecodeLimits
impl Send for DecodeLimits
impl Sync for DecodeLimits
impl Unpin for DecodeLimits
impl UnsafeUnpin for DecodeLimits
impl UnwindSafe for DecodeLimits
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