pub trait Args: Iterator<Item = OsString> + Sized {
// Provided methods
fn collect_lossy(self) -> Vec<String> { ... }
fn collect_ignore(self) -> Vec<String> { ... }
}Expand description
Args contains arguments passed to the utility.
It is a trait that extends Iterator<Item = OsString>.
It provides utility functions to collect the arguments into a Vec<String>.
The collected Vec<String> can be lossy or ignore invalid encoding.
Provided Methods§
Sourcefn collect_lossy(self) -> Vec<String>
fn collect_lossy(self) -> Vec<String>
Collects the iterator into a Vec<String>, lossily converting the OsStrings to Strings.
Sourcefn collect_ignore(self) -> Vec<String>
fn collect_ignore(self) -> Vec<String>
Collects the iterator into a Vec<String>, removing any elements that contain invalid encoding.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".