pub enum NestingError {
ZeroDepthLimit,
ZeroOutputLimit,
DepthExceeded {
depth: usize,
max_depth: usize,
},
OutputExceeded {
max_output: usize,
},
}Expand description
Failure while expanding a finite nested serial pattern.
Variants§
ZeroDepthLimit
The requested limit admitted no nesting depth.
ZeroOutputLimit
The requested limit admitted no output.
DepthExceeded
Expansion encountered a deeper group than permitted.
OutputExceeded
Expansion would emit more terminal values than permitted.
Trait Implementations§
Source§impl Clone for NestingError
impl Clone for NestingError
Source§fn clone(&self) -> NestingError
fn clone(&self) -> NestingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NestingError
Source§impl Debug for NestingError
impl Debug for NestingError
Source§impl Display for NestingError
impl Display for NestingError
impl Eq for NestingError
Source§impl Error for NestingError
impl Error for NestingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NestingError
impl PartialEq for NestingError
impl StructuralPartialEq for NestingError
Auto Trait Implementations§
impl Freeze for NestingError
impl RefUnwindSafe for NestingError
impl Send for NestingError
impl Sync for NestingError
impl Unpin for NestingError
impl UnsafeUnpin for NestingError
impl UnwindSafe for NestingError
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