Struct erg_common::traits::ExitStatus
source · pub struct ExitStatus {
pub code: i32,
pub num_errors: usize,
}
Fields§
§code: i32
§num_errors: usize
Implementations§
source§impl ExitStatus
impl ExitStatus
pub const OK: ExitStatus = _
pub const ERR1: ExitStatus = _
pub const fn new(code: i32, num_errors: usize) -> Self
Trait Implementations§
source§impl Clone for ExitStatus
impl Clone for ExitStatus
source§fn clone(&self) -> ExitStatus
fn clone(&self) -> ExitStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExitStatus
impl Debug for ExitStatus
source§impl Hash for ExitStatus
impl Hash for ExitStatus
source§impl PartialEq<ExitStatus> for ExitStatus
impl PartialEq<ExitStatus> for ExitStatus
source§fn eq(&self, other: &ExitStatus) -> bool
fn eq(&self, other: &ExitStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.