MCPcopy Index your code
hub / github.com/cloud-hypervisor/cloud-hypervisor / parse_subset

Method parse_subset

option_parser/src/lib.rs:172–174  ·  view source on GitHub ↗

Like [`parse`](Self::parse), but silently ignores unknown option names. This is useful when multiple parsers share the same input string and each only cares about a subset of the options.

(&mut self, input: &str)

Source from the content-addressed store, hash-verified

170 /// This is useful when multiple parsers share the same input string and
171 /// each only cares about a subset of the options.
172 pub fn parse_subset(&mut self, input: &str) -> OptionParserResult<()> {
173 self.parse_inner(input, true)
174 }
175
176 /// Registers a named option that requires a value (i.e. `key=value`).
177 ///

Callers 2

parseMethod · 0.80

Calls 1

parse_innerMethod · 0.80

Tested by 1