#[non_exhaustive]pub struct CodeInfo {
pub group: CodeGroup,
pub code: &'static str,
pub args: &'static [&'static str],
pub severity: Severity,
}Expand description
The public specification of one code.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.group: CodeGroupGroup.
code: &'static strThe stable English name.
args: &'static [&'static str]Argument names (suggestions of a diagnostic is present only when there are close names).
severity: SeveritySeverity.
Trait Implementations§
impl Eq for CodeInfo
impl StructuralPartialEq for CodeInfo
Auto Trait Implementations§
impl Forget for CodeInfo
impl Freeze for CodeInfo
impl Move for CodeInfo
impl RefUnwindSafe for CodeInfo
impl Send for CodeInfo
impl Sync for CodeInfo
impl Unpin for CodeInfo
impl UnsafeUnpin for CodeInfo
impl UnwindSafe for CodeInfo
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