pub trait RawArgs: Debug + Sealed {
// Required methods
fn get(&self, index: usize) -> Option<&OsStr>;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
}
Expand description
Accessor for unparsed arguments
Required Methods§
Sourcefn get(&self, index: usize) -> Option<&OsStr>
fn get(&self, index: usize) -> Option<&OsStr>
Returns a reference to an element or subslice depending on the type of index.
- If given a position, returns a reference to the element at that position or None if out of bounds.
- If given a range, returns the subslice corresponding to that range, or None if out of bounds.