pub enum TextReadCause {
NotTerminated,
NotEscapeFree,
NotBalanced,
NotOpened,
SourceBytesUnbounded,
Lexical(TextLexicalCause),
Unbounded(CaptureBound),
}Expand description
Why one text read refused.
Dependent checks: there is no group to balance until the characters were cut, and no magnitude to exceed until the trees were built.
Variants§
NotTerminated
A literal was never closed.
NotEscapeFree
A literal carries an escape sequence the literal owner could not read.
NotBalanced
A delimited group was never closed.
NotOpened
A closing delimiter arrived with no group open.
SourceBytesUnbounded
The declared text exceeds the independent source-byte magnitude.
Lexical(TextLexicalCause)
The low-level lexer established a malformed or context-dependent spelling.
Unbounded(CaptureBound)
The read exceeds a declared magnitude, and this is which one — a reader told only “unbounded” cannot tell a tree that nests too deep from one that spends the walk’s budget.
Trait Implementations§
Source§impl Clone for TextReadCause
impl Clone for TextReadCause
Source§fn clone(&self) -> TextReadCause
fn clone(&self) -> TextReadCause
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 TextReadCause
Source§impl Debug for TextReadCause
impl Debug for TextReadCause
Source§impl Display for TextReadCause
impl Display for TextReadCause
impl Eq for TextReadCause
Source§impl Hash for TextReadCause
impl Hash for TextReadCause
Source§impl PartialEq for TextReadCause
impl PartialEq for TextReadCause
impl StructuralPartialEq for TextReadCause
Auto Trait Implementations§
impl Freeze for TextReadCause
impl RefUnwindSafe for TextReadCause
impl Send for TextReadCause
impl Sync for TextReadCause
impl Unpin for TextReadCause
impl UnsafeUnpin for TextReadCause
impl UnwindSafe for TextReadCause
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