Struct PostlexError
pub struct PostlexError {
pub message: String,
}Expand description
A postlex configuration/stream error (unknown terminal name, or the
indenter’s dedent-mismatch — Lark’s DedentError).
Fields§
§message: StringTrait Implementations§
§impl Clone for PostlexError
impl Clone for PostlexError
§fn clone(&self) -> PostlexError
fn clone(&self) -> PostlexError
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 more§impl Debug for PostlexError
impl Debug for PostlexError
§impl Display for PostlexError
impl Display for PostlexError
impl Eq for PostlexError
§impl Error for PostlexError
impl Error for PostlexError
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()
§impl From<PostlexError> for ParseError
A configuration/stream error surfaces as ParseError::Postlex. Replaces
the three copies of map_postlex_error the drivers used to carry.
impl From<PostlexError> for ParseError
A configuration/stream error surfaces as ParseError::Postlex. Replaces
the three copies of map_postlex_error the drivers used to carry.
§fn from(e: PostlexError) -> Self
fn from(e: PostlexError) -> Self
Converts to this type from the input type.
§impl PartialEq for PostlexError
impl PartialEq for PostlexError
impl StructuralPartialEq for PostlexError
Auto Trait Implementations§
impl Freeze for PostlexError
impl RefUnwindSafe for PostlexError
impl Send for PostlexError
impl Sync for PostlexError
impl Unpin for PostlexError
impl UnsafeUnpin for PostlexError
impl UnwindSafe for PostlexError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more