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

Method eq

crates/kernel_cmdline/src/bytes.rs:379–386  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

377
378impl PartialEq for Cmdline<'_> {
379 fn eq(&self, other: &Self) -> bool {
380 let mut our_params = self.iter().collect::<Vec<_>>();
381 our_params.sort();
382 let mut their_params = other.iter().collect::<Vec<_>>();
383 their_params.sort();
384
385 our_params == their_params
386 }
387}
388
389impl Eq for Cmdline<'_> {}

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected