pub struct RegisteredDiagnosticCode(/* private fields */);Expand description
RegisteredDiagnosticCode
Centrally allocated producer identity. Only the canonical declaration tree can construct this type from a number.
Implementations§
Source§impl RegisteredDiagnosticCode
impl RegisteredDiagnosticCode
Sourcepub const fn raw_code(self) -> DiagnosticCode
pub const fn raw_code(self) -> DiagnosticCode
Return this registered producer identity as its lossless raw value.
Trait Implementations§
Source§impl Clone for RegisteredDiagnosticCode
impl Clone for RegisteredDiagnosticCode
Source§fn clone(&self) -> RegisteredDiagnosticCode
fn clone(&self) -> RegisteredDiagnosticCode
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 moreimpl Copy for RegisteredDiagnosticCode
Source§impl Debug for RegisteredDiagnosticCode
impl Debug for RegisteredDiagnosticCode
Source§impl Display for RegisteredDiagnosticCode
impl Display for RegisteredDiagnosticCode
impl Eq for RegisteredDiagnosticCode
Source§impl Hash for RegisteredDiagnosticCode
impl Hash for RegisteredDiagnosticCode
Source§impl Ord for RegisteredDiagnosticCode
impl Ord for RegisteredDiagnosticCode
Source§fn cmp(&self, other: &RegisteredDiagnosticCode) -> Ordering
fn cmp(&self, other: &RegisteredDiagnosticCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegisteredDiagnosticCode
impl PartialEq for RegisteredDiagnosticCode
Source§impl PartialOrd for RegisteredDiagnosticCode
impl PartialOrd for RegisteredDiagnosticCode
impl StructuralPartialEq for RegisteredDiagnosticCode
Auto Trait Implementations§
impl Freeze for RegisteredDiagnosticCode
impl RefUnwindSafe for RegisteredDiagnosticCode
impl Send for RegisteredDiagnosticCode
impl Sync for RegisteredDiagnosticCode
impl Unpin for RegisteredDiagnosticCode
impl UnsafeUnpin for RegisteredDiagnosticCode
impl UnwindSafe for RegisteredDiagnosticCode
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