pub struct DiagnosticDeclaration {
pub declaring_crate: String,
pub declaration: AllocationDeclaration,
}Expand description
DiagnosticDeclaration
Read-only diagnostic view of one static allocation declaration.
Fields§
§declaring_crate: StringCrate or integration authority that registered the declaration.
declaration: AllocationDeclarationAllocation declaration registered by that authority.
Implementations§
Source§impl DiagnosticDeclaration
impl DiagnosticDeclaration
Sourcepub fn new(
declaring_crate: impl Into<String>,
declaration: AllocationDeclaration,
) -> Self
pub fn new( declaring_crate: impl Into<String>, declaration: AllocationDeclaration, ) -> Self
Build a diagnostic declaration record.
Trait Implementations§
Source§impl Clone for DiagnosticDeclaration
impl Clone for DiagnosticDeclaration
Source§fn clone(&self) -> DiagnosticDeclaration
fn clone(&self) -> DiagnosticDeclaration
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 DiagnosticDeclaration
impl Debug for DiagnosticDeclaration
Source§impl<'de> Deserialize<'de> for DiagnosticDeclaration
impl<'de> Deserialize<'de> for DiagnosticDeclaration
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 DiagnosticDeclaration
Source§impl PartialEq for DiagnosticDeclaration
impl PartialEq for DiagnosticDeclaration
Source§fn eq(&self, other: &DiagnosticDeclaration) -> bool
fn eq(&self, other: &DiagnosticDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiagnosticDeclaration
impl Serialize for DiagnosticDeclaration
impl StructuralPartialEq for DiagnosticDeclaration
Auto Trait Implementations§
impl Freeze for DiagnosticDeclaration
impl RefUnwindSafe for DiagnosticDeclaration
impl Send for DiagnosticDeclaration
impl Sync for DiagnosticDeclaration
impl Unpin for DiagnosticDeclaration
impl UnsafeUnpin for DiagnosticDeclaration
impl UnwindSafe for DiagnosticDeclaration
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