Struct rat_in_a_tube::CompileError
source · pub struct CompileError { /* private fields */ }
Expand description
Diagnostic message generated on warning or error.
Implementations§
source§impl CompileError
impl CompileError
sourcepub fn get_message(&self) -> &str
pub fn get_message(&self) -> &str
Get the message of the error.
sourcepub fn get_message_cstr(&self) -> &CStr
pub fn get_message_cstr(&self) -> &CStr
Get the message of the error.
sourcepub fn get_file_cstr(&self) -> &CStr
pub fn get_file_cstr(&self) -> &CStr
Get the filename.
sourcepub fn get_error_type(&self) -> CompileErrorType
pub fn get_error_type(&self) -> CompileErrorType
Get the error type.
sourcepub fn get_position(&self) -> (usize, usize)
pub fn get_position(&self) -> (usize, usize)
Return the line and column of the error token.
Trait Implementations§
source§impl Clone for CompileError
impl Clone for CompileError
source§fn clone(&self) -> CompileError
fn clone(&self) -> CompileError
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 CompileError
impl Debug for CompileError
Auto Trait Implementations§
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
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