pub struct Report { /* private fields */ }
Implementations§
Source§impl Report
impl Report
pub fn print_reports(reports: &[Report], file_library: &FileLibrary)
pub fn error_code_to_diagnostic_code(error_code: &ReportCode) -> DiagnosticCode
pub fn error(error_message: String, code: ReportCode) -> Report
pub fn warning(error_message: String, code: ReportCode) -> Report
pub fn add_primary( &mut self, location: FileLocation, file_id: FileID, message: String, ) -> &mut Self
pub fn add_secondary( &mut self, location: FileLocation, file_id: FileID, possible_message: Option<String>, ) -> &mut Self
pub fn add_note(&mut self, note: String) -> &mut Self
pub fn to_diagnostic(&self) -> Diagnostic<FileID>
pub fn is_error(&self) -> bool
pub fn is_warning(&self) -> bool
pub fn get_category(&self) -> &MessageCategory
pub fn get_message(&self) -> &String
pub fn get_code(&self) -> &ReportCode
pub fn get_primary(&self) -> &Vec<Label<FileID>>
pub fn get_secondary(&self) -> &Vec<Label<FileID>>
pub fn get_notes(&self) -> &Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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