pub enum LiteralReadCause {
NotAKnownForm,
NotReadable,
}Expand description
Why one literal spelling could not be read into the value it names.
Neither row is the caller’s mistake: every spelling that reaches this road was already lexed by a compiler, so a refusal is this crate saying it does not read what the compiler admitted.
Variants§
NotAKnownForm
The spelling opens with no literal form this grammar has a row for.
NotReadable
The form is one this grammar reads, and its body carries material this grammar could not read the value of.
Implementations§
Trait Implementations§
Source§impl Clone for LiteralReadCause
impl Clone for LiteralReadCause
Source§fn clone(&self) -> LiteralReadCause
fn clone(&self) -> LiteralReadCause
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 LiteralReadCause
Source§impl Debug for LiteralReadCause
impl Debug for LiteralReadCause
Source§impl Display for LiteralReadCause
impl Display for LiteralReadCause
impl Eq for LiteralReadCause
Source§impl Error for LiteralReadCause
impl Error for LiteralReadCause
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 Hash for LiteralReadCause
impl Hash for LiteralReadCause
Source§impl PartialEq for LiteralReadCause
impl PartialEq for LiteralReadCause
impl StructuralPartialEq for LiteralReadCause
Auto Trait Implementations§
impl Freeze for LiteralReadCause
impl RefUnwindSafe for LiteralReadCause
impl Send for LiteralReadCause
impl Sync for LiteralReadCause
impl Unpin for LiteralReadCause
impl UnsafeUnpin for LiteralReadCause
impl UnwindSafe for LiteralReadCause
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