pub struct Code {
pub code: &'static str,
pub kind: CodeKind,
pub title: &'static str,
pub text: &'static str,
pub then: &'static str,
}Expand description
A condition or a reason, written once.
Fields§
§code: &'static strc1, D1, E2, U2…
kind: CodeKind§title: &'static strIn a few words.
text: &'static strThe condition, the rule, or the limit.
then: &'static strWhat to do instead (by design), the estimated cost (a limit), or
the entry in docs/upstream.md (upstream).
Trait Implementations§
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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