pub struct StructuredArguments(/* private fields */);
Implementations§
Source§impl StructuredArguments
impl StructuredArguments
pub fn read(&self, name: &'static str) -> Option<impl Iterator<Item = &str>>
pub fn read_many( &self, name: &'static [&'static str], ) -> impl Iterator<Item = &str>
pub fn read_default(&self) -> impl Iterator<Item = &str>
pub fn consume( &mut self, name: &'static str, ) -> Option<impl Iterator<Item = String>>
pub fn consume_many<'a>( &'a mut self, name: &'static [&'static str], ) -> impl Iterator<Item = String> + 'a
pub fn consume_default(&mut self) -> impl Iterator<Item = String>
pub fn new(args: impl Iterator<Item = String>) -> StructuredArguments
Trait Implementations§
Source§impl Clone for StructuredArguments
impl Clone for StructuredArguments
Source§fn clone(&self) -> StructuredArguments
fn clone(&self) -> StructuredArguments
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 Debug for StructuredArguments
impl Debug for StructuredArguments
Source§impl Default for StructuredArguments
impl Default for StructuredArguments
Source§fn default() -> StructuredArguments
fn default() -> StructuredArguments
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructuredArguments
impl RefUnwindSafe for StructuredArguments
impl Send for StructuredArguments
impl Sync for StructuredArguments
impl Unpin for StructuredArguments
impl UnwindSafe for StructuredArguments
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