pub struct Intake<'a> { /* private fields */ }Implementations§
Source§impl<'a> Intake<'a>
impl<'a> Intake<'a>
pub fn new() -> Intake<'a>
Sourcepub fn arg(
self,
cmd_short: char,
cmd_long: &str,
arg: &'a mut dyn ArgValue,
) -> Intake<'a>
pub fn arg( self, cmd_short: char, cmd_long: &str, arg: &'a mut dyn ArgValue, ) -> Intake<'a>
Adds an argument to the intake to which the intake will try to parse and mutate
§Arguments
- ‘cmd_short’ - a short version of the command flag, one character
- ‘cmd_long’ - a long verion of the command flag, one word
§Example
bene::Intake::new()
.arg('f', "frames", &mut frames)
.arg('L', "lib", &mut lib);Auto Trait Implementations§
impl<'a> Freeze for Intake<'a>
impl<'a> !RefUnwindSafe for Intake<'a>
impl<'a> !Send for Intake<'a>
impl<'a> !Sync for Intake<'a>
impl<'a> Unpin for Intake<'a>
impl<'a> !UnwindSafe for Intake<'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