pub struct UsageError {
pub line: u64,
pub kind: UsageErrorKind,
}Expand description
An input error while reading a usage report. Exit code 2.
Messages name the line and the column. They never include cell text.
Fields§
§line: u64§kind: UsageErrorKindTrait Implementations§
Source§impl Clone for UsageError
impl Clone for UsageError
Source§impl Debug for UsageError
impl Debug for UsageError
Source§impl Display for UsageError
impl Display for UsageError
impl Eq for UsageError
Source§impl Error for UsageError
impl Error for UsageError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for UsageError
impl PartialEq for UsageError
impl StructuralPartialEq for UsageError
Auto Trait Implementations§
impl Freeze for UsageError
impl RefUnwindSafe for UsageError
impl Send for UsageError
impl Sync for UsageError
impl Unpin for UsageError
impl UnsafeUnpin for UsageError
impl UnwindSafe for UsageError
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