pub fn qemu_plugin_bool_parse<S>(name: S, val: S) -> Result<bool>
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 valueval
: Argument value, what’s after the equals sign