#[non_exhaustive]pub enum SizeLimit {
MemoryBudget,
OperatorPixelCap,
}Expand description
Which limit refused an image (ImageCodecError::LimitExceeded).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MemoryBudget
DecodeLimits::memory_budget: the predicted peak heap bytes,
plus what the caller allocates per pixel afterwards. Figures are
bytes.
OperatorPixelCap
DecodeLimits::max_pixels, the operator’s strict mode. Figures
are pixels.
Implementations§
Trait Implementations§
impl Copy for SizeLimit
impl Eq for SizeLimit
impl StructuralPartialEq for SizeLimit
Auto Trait Implementations§
impl Forget for SizeLimit
impl Freeze for SizeLimit
impl Move for SizeLimit
impl RefUnwindSafe for SizeLimit
impl Send for SizeLimit
impl Sync for SizeLimit
impl Unpin for SizeLimit
impl UnsafeUnpin for SizeLimit
impl UnwindSafe for SizeLimit
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