Struct kern::CliBuilder
source · pub struct CliBuilder<'a> { /* private fields */ }
Expand description
Builder for command-line parsing (Command)
§Example
use kern::CliBuilder;
use std::env;
let args: Vec<String> = env::args().collect();
let command = CliBuilder::new().options(&["option"]).build(&args);
assert_eq!(command.command().contains("rustdoctest"), true);
Implementations§
Trait Implementations§
source§impl<'a> Clone for CliBuilder<'a>
impl<'a> Clone for CliBuilder<'a>
source§fn clone(&self) -> CliBuilder<'a>
fn clone(&self) -> CliBuilder<'a>
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<'a> Debug for CliBuilder<'a>
impl<'a> Debug for CliBuilder<'a>
source§impl<'a> Default for CliBuilder<'a>
impl<'a> Default for CliBuilder<'a>
source§fn default() -> CliBuilder<'a>
fn default() -> CliBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CliBuilder<'a>
impl<'a> Send for CliBuilder<'a>
impl<'a> Sync for CliBuilder<'a>
impl<'a> Unpin for CliBuilder<'a>
impl<'a> UnwindSafe for CliBuilder<'a>
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