pub struct CodeEntry {
pub code: &'static str,
pub stage: Stage,
pub title: &'static str,
pub explain: &'static str,
pub warning: bool,
}Expand description
One code, as the index describes it.
Fields§
§code: &'static str§stage: Stage§title: &'static strThe diagnostic’s message, with the parts that vary at the call site generalised.
explain: &'static strWhy the compiler refuses this, in the terms the diagnostic itself uses.
warning: boolTrue for the codes raised as warnings rather than errors.
Trait Implementations§
impl Copy for CodeEntry
impl Eq for CodeEntry
impl StructuralPartialEq for CodeEntry
Auto Trait Implementations§
impl Freeze for CodeEntry
impl RefUnwindSafe for CodeEntry
impl Send for CodeEntry
impl Sync for CodeEntry
impl Unpin for CodeEntry
impl UnwindSafe for CodeEntry
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