#[non_exhaustive]pub enum LimitExceeded {
Depth {
max: u32,
line: u32,
column: u32,
},
Nesting {
max: u32,
},
Stack {
max: u32,
},
}Expand description
The default maximum element depth of a document (ValidateOptions::max_depth), and
the limits Error::Limit reports.
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
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
Source§fn clone(&self) -> LimitExceeded
fn clone(&self) -> LimitExceeded
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more