MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse_options

Function parse_options

cranelift/reader/src/isaspec.rs:92–104  ·  view source on GitHub ↗

Parse an iterator of command line options and apply them to `config`. Note that parsing terminates after the first error is encountered.

(
    iter: I,
    config: &mut dyn Configurable,
    loc: Location,
)

Source from the content-addressed store, hash-verified

90///
91/// Note that parsing terminates after the first error is encountered.
92pub fn parse_options<'a, I>(
93 iter: I,
94 config: &mut dyn Configurable,
95 loc: Location,
96) -> Result<(), ParseOptionError>
97where
98 I: Iterator<Item = &'a str>,
99{
100 for opt in iter {
101 parse_option(opt, config, loc)?;
102 }
103 Ok(())
104}
105
106/// Parse an single command line options and apply it to `config`.
107pub fn parse_option(

Callers 2

parse_target_specsMethod · 0.85
parse_sets_and_tripleFunction · 0.85

Calls 2

OkFunction · 0.85
parse_optionFunction · 0.70

Tested by

no test coverage detected