pub struct Report { /* private fields */ }Implementations§
Source§impl Report
impl Report
pub fn error(message: String, code: ReportCode) -> Report
pub fn warning(message: String, code: ReportCode) -> Report
pub fn info(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, verbose: bool) -> Diagnostic<FileID>
pub fn primary_file_ids(&self) -> &Vec<FileID> ⓘ
pub fn category(&self) -> &MessageCategory
pub fn message(&self) -> &String
pub fn primary(&self) -> &Vec<ReportLabel> ⓘ
pub fn secondary(&self) -> &Vec<ReportLabel> ⓘ
pub fn notes(&self) -> &Vec<String>
pub fn code(&self) -> &ReportCode
pub fn id(&self) -> String
pub fn name(&self) -> 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