pub struct ParseRejection {
pub reason: &'static str,
pub offset: Option<usize>,
pub line: Option<usize>,
pub column: Option<usize>,
pub expected: Option<Vec<String>>,
pub limit: Option<usize>,
}Expand description
Why a parse rejects its input, and where.
Fields§
§reason: &'static strsyntax, nestingDepth, stepLimit, memoryBudget, recovered or
ambiguity.
offset: Option<usize>The byte offset, for a positioned rejection.
line: Option<usize>The 1-based line of the offset.
column: Option<usize>The 1-based column of the offset, in code points.
expected: Option<Vec<String>>What a syntax error expected at the offset, sorted.
limit: Option<usize>The limit a resource rejection reached.
Trait Implementations§
Source§impl Clone for ParseRejection
impl Clone for ParseRejection
Source§fn clone(&self) -> ParseRejection
fn clone(&self) -> ParseRejection
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 moreSource§impl Debug for ParseRejection
impl Debug for ParseRejection
Source§impl Display for ParseRejection
impl Display for ParseRejection
impl Eq for ParseRejection
Source§impl PartialEq for ParseRejection
impl PartialEq for ParseRejection
impl StructuralPartialEq for ParseRejection
Auto Trait Implementations§
impl Freeze for ParseRejection
impl RefUnwindSafe for ParseRejection
impl Send for ParseRejection
impl Sync for ParseRejection
impl Unpin for ParseRejection
impl UnsafeUnpin for ParseRejection
impl UnwindSafe for ParseRejection
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.