pub struct RuntimeDiagnostics { /* private fields */ }Expand description
Bounded snapshot of active host runtime diagnostics.
Implementations§
Source§impl RuntimeDiagnostics
impl RuntimeDiagnostics
Sourcepub fn entries(&self) -> &[RuntimeDiagnostic]
pub fn entries(&self) -> &[RuntimeDiagnostic]
Return diagnostics in stable code order.
Sourcepub fn get(&self, code: &str) -> Option<&RuntimeDiagnostic>
pub fn get(&self, code: &str) -> Option<&RuntimeDiagnostic>
Return a diagnostic by its stable code.
Trait Implementations§
Source§impl Clone for RuntimeDiagnostics
impl Clone for RuntimeDiagnostics
Source§fn clone(&self) -> RuntimeDiagnostics
fn clone(&self) -> RuntimeDiagnostics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeDiagnostics
impl Debug for RuntimeDiagnostics
Source§impl Default for RuntimeDiagnostics
impl Default for RuntimeDiagnostics
Source§fn default() -> RuntimeDiagnostics
fn default() -> RuntimeDiagnostics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeDiagnostics
impl<'de> Deserialize<'de> for RuntimeDiagnostics
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
impl Eq for RuntimeDiagnostics
Source§impl PartialEq for RuntimeDiagnostics
impl PartialEq for RuntimeDiagnostics
Source§impl Serialize for RuntimeDiagnostics
impl Serialize for RuntimeDiagnostics
impl StructuralPartialEq for RuntimeDiagnostics
Auto Trait Implementations§
impl Freeze for RuntimeDiagnostics
impl RefUnwindSafe for RuntimeDiagnostics
impl Send for RuntimeDiagnostics
impl Sync for RuntimeDiagnostics
impl Unpin for RuntimeDiagnostics
impl UnsafeUnpin for RuntimeDiagnostics
impl UnwindSafe for RuntimeDiagnostics
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