pub struct GeneratorError {
    pub top_level_declaration: Option<ToplevelDefinition>,
    pub details: String,
    pub kind: GeneratorErrorType,
}Fields§
§top_level_declaration: Option<ToplevelDefinition>§details: String§kind: GeneratorErrorTypeImplementations§
Source§impl GeneratorError
 
impl GeneratorError
pub fn new( tld: Option<ToplevelDefinition>, details: &str, kind: GeneratorErrorType, ) -> Self
Trait Implementations§
Source§impl Clone for GeneratorError
 
impl Clone for GeneratorError
Source§fn clone(&self) -> GeneratorError
 
fn clone(&self) -> GeneratorError
Returns a copy of the value. Read more
1.0.0 · 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 GeneratorError
 
impl Debug for GeneratorError
Source§impl Default for GeneratorError
 
impl Default for GeneratorError
Source§impl Display for GeneratorError
 
impl Display for GeneratorError
Source§impl Error for GeneratorError
 
impl Error for GeneratorError
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 From<GeneratorError> for CompilerError
 
impl From<GeneratorError> for CompilerError
Source§fn from(value: GeneratorError) -> Self
 
fn from(value: GeneratorError) -> Self
Converts to this type from the input type.
Source§impl From<GrammarError> for GeneratorError
 
impl From<GrammarError> for GeneratorError
Source§fn from(value: GrammarError) -> Self
 
fn from(value: GrammarError) -> Self
Converts to this type from the input type.
Source§impl From<LexError> for GeneratorError
 
impl From<LexError> for GeneratorError
Source§impl PartialEq for GeneratorError
 
impl PartialEq for GeneratorError
impl StructuralPartialEq for GeneratorError
Auto Trait Implementations§
impl Freeze for GeneratorError
impl !RefUnwindSafe for GeneratorError
impl !Send for GeneratorError
impl !Sync for GeneratorError
impl Unpin for GeneratorError
impl !UnwindSafe for GeneratorError
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