MCPcopy Create free account
hub / github.com/bootc-dev/bootc / iter

Method iter

crates/kernel_cmdline/src/bytes.rs:127–129  ·  view source on GitHub ↗

Returns an iterator over all parameters in the command line. Properly handles quoted values containing whitespace and splits on unquoted whitespace characters. Parameters are parsed as either key-only switches or key=value pairs.

(&'a self)

Source from the content-addressed store, hash-verified

125 /// unquoted whitespace characters. Parameters are parsed as either
126 /// key-only switches or key=value pairs.
127 pub fn iter(&'a self) -> CmdlineIter<'a> {
128 CmdlineIter(self.iter_bytes())
129 }
130
131 /// Returns an iterator over all parameters in the command line as byte slices.
132 ///

Callers 15

nextMethod · 0.45
iter_utf8Method · 0.45
findMethod · 0.45
addMethod · 0.45
add_or_modifyMethod · 0.45
removeMethod · 0.45
remove_exactMethod · 0.45
into_iterMethod · 0.45
eqMethod · 0.45
cmpMethod · 0.45
parse_internalMethod · 0.45

Calls 2

iter_bytesMethod · 0.80
CmdlineIterClass · 0.70

Tested by 10

test_kargs_simpleFunction · 0.36
test_addFunction · 0.36
test_add_or_modifyFunction · 0.36
test_removeFunction · 0.36
test_remove_duplicatesFunction · 0.36
test_remove_exactFunction · 0.36
test_extendFunction · 0.36
test_extend_emptyFunction · 0.36