pub struct DiagCode(/* private fields */);Expand description
A stable diagnostic code (E0701).
The format is E/W plus four digits; the ranges are documented on the
crate. Codes are a public contract once emitted, so never reuse one for a
different message.
Implementations§
Trait Implementations§
impl Copy for DiagCode
impl Eq for DiagCode
impl StructuralPartialEq for DiagCode
Auto Trait Implementations§
impl Forget for DiagCode
impl Freeze for DiagCode
impl RefUnwindSafe for DiagCode
impl Send for DiagCode
impl Sync for DiagCode
impl Unpin for DiagCode
impl UnsafeUnpin for DiagCode
impl UnwindSafe for DiagCode
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