pub struct DiagnosticsInfo { /* private fields */ }Implementations§
Source§impl DiagnosticsInfo
impl DiagnosticsInfo
pub fn new( diagnostics_messages: HashMap<String, DiagnosticsMessage>, source: Option<String>, ) -> Self
pub fn add_message(&mut self, extra_info: DMExtraInfo, code: &str)
Sourcepub fn check_message_limit_reached(&self) -> bool
pub fn check_message_limit_reached(&self) -> bool
Check if the message limit was reached.
true if limit was reached.
Sourcepub fn lock_message_list(&mut self)
pub fn lock_message_list(&mut self)
Lock the message list, not more diagnostic message can be added after this.
Sourcepub fn get_message_lock_state(&self) -> bool
pub fn get_message_lock_state(&self) -> bool
Get the current state of the message lock.
Sourcepub fn get_diagnostic_list(&self) -> &[Diagnostic]
pub fn get_diagnostic_list(&self) -> &[Diagnostic]
Return a borrowed list of the diagnostic message list
Sourcepub fn extract_diagnostic_list(self) -> Vec<Diagnostic>
pub fn extract_diagnostic_list(self) -> Vec<Diagnostic>
Extract the list of all diagnostic messages.
This is destroy the DiagnosticsInfo.
pub fn load_from_file( set: DiagnosticMessageSet, source: Option<String>, ) -> DiagnosticsInfo
Trait Implementations§
Source§impl Clone for DiagnosticsInfo
impl Clone for DiagnosticsInfo
Source§fn clone(&self) -> DiagnosticsInfo
fn clone(&self) -> DiagnosticsInfo
Returns a duplicate 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 DiagnosticsInfo
impl Debug for DiagnosticsInfo
Source§impl Default for DiagnosticsInfo
impl Default for DiagnosticsInfo
Source§fn default() -> DiagnosticsInfo
fn default() -> DiagnosticsInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagnosticsInfo
impl<'de> Deserialize<'de> for DiagnosticsInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DiagnosticsInfo
impl RefUnwindSafe for DiagnosticsInfo
impl Send for DiagnosticsInfo
impl Sync for DiagnosticsInfo
impl Unpin for DiagnosticsInfo
impl UnwindSafe for DiagnosticsInfo
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