Function qemu_plugin_bool_parse

Source
pub fn qemu_plugin_bool_parse<S>(name: S, val: S) -> Result<bool>
where S: AsRef<str>,
Expand description

Parse a boolean argument in the form of =[on|yes|true|off|no|false]. returns true if the combination @name=@val parses correctly to a boolean argument, and false otherwise.

§Arguments

  • name: argument name, the part before the equals sign @val: argument value, what’s after the equals sign @ret: output return value
  • val: Argument value, what’s after the equals sign