#[non_exhaustive]pub enum Limit {
NestingDepth,
StreamDecoded,
DecodedTotal,
FilterChain,
ResolveDepth,
PageTreeDepth,
TreeDepth,
StringLength,
ContentOperators,
XObjectDepth,
ImagePixels,
ReadWindow,
}Expand description
Which hard limit was exceeded (the limit of Error::LimitExceeded).
Soft limits never produce an error, so they have no variant here.
Added in 0.2.0.
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.
NestingDepth
StreamDecoded
DecodedTotal
FilterChain
ResolveDepth
PageTreeDepth
Limits::max_page_tree_depth. The only reader of the page tree today is
Document::pages, one of ADR 0003’s tolerant paths: it skips a subtree past this
limit with the page-tree-node-skipped warning (an Error::Strict in strict mode)
instead of returning this error (ADR 0003 §3). No reader returns it yet:
laminapdf-model’s lookup of a page through its /Parent chain stops at the limit and
finds no page.
TreeDepth
StringLength
ContentOperators
XObjectDepth
ImagePixels
ReadWindow
Implementations§
Trait Implementations§
impl Copy for Limit
impl Eq for Limit
Source§impl Ord for Limit
impl Ord for Limit
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Limit
impl PartialOrd for Limit
impl StructuralPartialEq for Limit
Auto Trait Implementations§
impl Forget for Limit
impl Freeze for Limit
impl Move for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnsafeUnpin for Limit
impl UnwindSafe for Limit
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