pub struct Main<R, O, E> { /* private fields */ }Implementations§
Source§impl<R: Read + Send, O: Write + Send, E: Write + Send> Main<R, O, E>
impl<R: Read + Send, O: Write + Send, E: Write + Send> Main<R, O, E>
pub fn new(input: R, out: O, err: E) -> Self
Sourcepub fn into_streams(self) -> (O, E)
pub fn into_streams(self) -> (O, E)
The captured streams, for tests.
pub fn run(&self, input_args: &[String]) -> i32
pub fn run_parsed(&self, parsed_args: &ParsedArgs) -> i32
Auto Trait Implementations§
impl<R, O, E> !Freeze for Main<R, O, E>
impl<R, O, E> RefUnwindSafe for Main<R, O, E>
impl<R, O, E> Send for Main<R, O, E>
impl<R, O, E> Sync for Main<R, O, E>
impl<R, O, E> Unpin for Main<R, O, E>
impl<R, O, E> UnsafeUnpin for Main<R, O, E>
impl<R, O, E> UnwindSafe for Main<R, O, E>
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