pub struct FlagSet<'t> { /* private fields */ }Implementations§
Source§impl<'t> FlagSet<'t>
impl<'t> FlagSet<'t>
pub fn new_without_help() -> FlagSet<'t>
pub fn new(help: &'t mut bool) -> FlagSet<'t>
pub fn define<Name: ToString, Usage: ToString, V: ValueInner>( &mut self, name: Name, short: Option<char>, b: &'t mut V, usage: Usage, )
pub fn parse(&mut self, args: &[String]) -> Result<Vec<String>, Error>
pub fn usage<W: Write>(&self, w: &mut W) -> Result<()>
Auto Trait Implementations§
impl<'t> Freeze for FlagSet<'t>
impl<'t> RefUnwindSafe for FlagSet<'t>
impl<'t> Send for FlagSet<'t>
impl<'t> Sync for FlagSet<'t>
impl<'t> Unpin for FlagSet<'t>
impl<'t> !UnwindSafe for FlagSet<'t>
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