#[non_exhaustive]pub enum LimitExceeded {
Depth {
max: u32,
line: u32,
column: u32,
},
Nesting {
max: u32,
},
Stack {
max: u32,
},
}Expand description
A limit that a document or a transformation exceeded: the input is refused rather than processed with an unbounded call stack.
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.
Depth
An element is nested deeper than max elements (the document element is at
depth 1); line and column (1-based) are the start of its start tag.
Fields
Nesting
Template rules, built-in template rules, named templates and stylesheet functions
are invoked one inside another more than max deep.
Stack
The invocations in progress use more than max bytes of the call stack, measured
from the start of the transformation: a stylesheet whose templates or functions
need more stack per level than the nesting allows for.
Implementations§
Source§impl LimitExceeded
impl LimitExceeded
Sourcepub const fn max(self) -> u32
pub const fn max(self) -> u32
The limit’s value (bytes for LimitExceeded::Stack).
Trait Implementations§
Source§impl Clone for LimitExceeded
impl Clone for LimitExceeded
impl Copy for LimitExceeded
Source§impl Debug for LimitExceeded
impl Debug for LimitExceeded
Source§impl Display for LimitExceeded
impl Display for LimitExceeded
impl Eq for LimitExceeded
Source§impl Hash for LimitExceeded
impl Hash for LimitExceeded
Source§impl PartialEq for LimitExceeded
impl PartialEq for LimitExceeded
impl StructuralPartialEq for LimitExceeded
Auto Trait Implementations§
impl Forget for LimitExceeded
impl Freeze for LimitExceeded
impl RefUnwindSafe for LimitExceeded
impl Send for LimitExceeded
impl Sync for LimitExceeded
impl Unpin for LimitExceeded
impl UnsafeUnpin for LimitExceeded
impl UnwindSafe for LimitExceeded
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