pub struct Code { /* private fields */ }Expand description
Implementations§
Source§impl Code
Construction
impl Code
Construction
Sourcepub fn new(severity: Severity, code: String, message: String) -> Self
pub fn new(severity: Severity, code: String, message: String) -> Self
Creates a new command-line report code.
Sourcepub fn from<S, S0, S1>(severity: S, code: S0, message: S1) -> Self
pub fn from<S, S0, S1>(severity: S, code: S0, message: S1) -> Self
Creates a new command-line report code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin 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