pub enum CaptureBound {
Depth,
Level,
Tree,
Work,
}Expand description
Which declared magnitude one capture ran past.
Every row refuses before any partial tree exists: a truncated capture is a different declaration, and capturing one would put everything downstream to work on material nobody wrote.
Variants§
Depth
The declared input nests deeper than the declared magnitude.
Level
One nesting level carries more token trees than the declared magnitude.
Tree
The whole tree carries more tokens than the declared magnitude.
Work
The walk spent the declared capture-work budget.
Implementations§
Trait Implementations§
Source§impl Clone for CaptureBound
impl Clone for CaptureBound
Source§fn clone(&self) -> CaptureBound
fn clone(&self) -> CaptureBound
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 CaptureBound
Source§impl Debug for CaptureBound
impl Debug for CaptureBound
Source§impl Display for CaptureBound
impl Display for CaptureBound
impl Eq for CaptureBound
Source§impl Error for CaptureBound
impl Error for CaptureBound
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 From<CaptureBound> for CaptureError
impl From<CaptureBound> for CaptureError
Source§fn from(bound: CaptureBound) -> Self
fn from(bound: CaptureBound) -> Self
Converts to this type from the input type.
Source§impl Hash for CaptureBound
impl Hash for CaptureBound
Source§impl PartialEq for CaptureBound
impl PartialEq for CaptureBound
impl StructuralPartialEq for CaptureBound
Auto Trait Implementations§
impl Freeze for CaptureBound
impl RefUnwindSafe for CaptureBound
impl Send for CaptureBound
impl Sync for CaptureBound
impl Unpin for CaptureBound
impl UnsafeUnpin for CaptureBound
impl UnwindSafe for CaptureBound
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