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

Method iter_bytes

crates/kernel_cmdline/src/bytes.rs:135–137  ·  view source on GitHub ↗

Returns an iterator over all parameters in the command line as byte slices. This is similar to `iter()` but yields `&[u8]` directly instead of `Parameter`, which can be more convenient when you just need the raw byte representation.

(&self)

Source from the content-addressed store, hash-verified

133 /// This is similar to `iter()` but yields `&[u8]` directly instead of `Parameter`,
134 /// which can be more convenient when you just need the raw byte representation.
135 pub fn iter_bytes(&self) -> CmdlineIterBytes<'_> {
136 CmdlineIterBytes(&self.0)
137 }
138
139 /// Returns an iterator over all parameters in the command line
140 /// which are valid UTF-8.

Callers 7

iter_strMethod · 0.80
iterMethod · 0.80
test_iter_bytes_simpleFunction · 0.80
test_iter_bytes_emptyFunction · 0.80

Calls 1

CmdlineIterBytesClass · 0.85

Tested by 5

test_iter_bytes_simpleFunction · 0.64
test_iter_bytes_emptyFunction · 0.64