Enum gcg_parser::error::GcgError
source · pub enum GcgError {
MissingToken {
token: String,
token_index: usize,
line_index: usize,
text: String,
},
InvalidToken {
token: String,
text: String,
},
MissingPragma {
keyword: String,
},
UnknownPragma {
line: String,
line_index: usize,
},
}
Variants§
MissingToken
Missing token {token:?} in position {token_index:?}: {text:?}
InvalidToken
Invalid token {token:?}: {text:?}
MissingPragma
Missing required pragma {keyword:?}
UnknownPragma
Unknown pragma on line {line_index:?}: {line:?}
Trait Implementations§
source§impl Error for GcgError
impl Error for GcgError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for GcgError
impl Send for GcgError
impl Sync for GcgError
impl Unpin for GcgError
impl UnwindSafe for GcgError
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