Struct maelstrom_util::process::ExitCode
source · pub struct ExitCode(/* private fields */);
Expand description
It’s very hard to test with std::process::ExitCode
because it intentionally doesn’t
implement Eq
, PartialEq
, etc. This struct fills the same role and can be converted to
std::process::ExitCode
if necessary, but since it implements Termination
, one shouldn’t
need to.
Implementations§
Trait Implementations§
source§impl PartialEq for ExitCode
impl PartialEq for ExitCode
source§impl Termination for ExitCode
impl Termination for ExitCode
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl Freeze for ExitCode
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnwindSafe for ExitCode
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.