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 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