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

Method add

crates/kernel_cmdline/src/utf8.rs:171–173  ·  view source on GitHub ↗

Add a parameter to the command line if it doesn't already exist Returns `Action::Added` if the parameter did not already exist and was added. Returns `Action::Existed` if the exact parameter (same key and value) already exists. No modification was made. Unlike `add_or_modify`, this method will not modify existing parameters. If a parameter with the same key exists but has a different value, the

(&mut self, param: &Parameter)

Source from the content-addressed store, hash-verified

169 /// different value, the new parameter is still added, allowing
170 /// duplicate keys (e.g., multiple `console=` parameters).
171 pub fn add(&mut self, param: &Parameter) -> Action {
172 self.0.add(&param.0)
173 }
174
175 /// Add or modify a parameter to the command line
176 ///

Callers 7

compute_merged_optionsFunction · 0.45
display_pull_progressFunction · 0.45
compute_apply_kargs_diffFunction · 0.45
root_args_from_cmdlineFunction · 0.45
updateMethod · 0.45
extendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected