Skip to main content

Exit

Trait Exit 

Source
pub trait Exit {
    type O;

    // Required methods
    fn exit(self);
    fn exit_if_err(self) -> Self::O;
    fn exit_silently(self);
}

Required Associated Types§

Source

type O

Required Methods§

Source

fn exit(self)

Source

fn exit_if_err(self) -> Self::O

Source

fn exit_silently(self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<O> Exit for CliResult<O>

Source§

type O = O