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

Method iter_utf8

crates/kernel_cmdline/src/bytes.rs:141–144  ·  view source on GitHub ↗

Returns an iterator over all parameters in the command line which are valid UTF-8.

(&'a self)

Source from the content-addressed store, hash-verified

139 /// Returns an iterator over all parameters in the command line
140 /// which are valid UTF-8.
141 pub fn iter_utf8(&'a self) -> impl Iterator<Item = utf8::Parameter<'a>> {
142 self.iter()
143 .filter_map(|p| utf8::Parameter::try_from(p).ok())
144 }
145
146 /// Locate a kernel argument with the given key name.
147 ///

Callers 1

test_kargs_iter_utf8Function · 0.80

Calls 1

iterMethod · 0.45

Tested by 1

test_kargs_iter_utf8Function · 0.64