MCPcopy Index your code
hub / github.com/cloud-hypervisor/cloud-hypervisor / Toggle

Class Toggle

option_parser/src/lib.rs:294–294  ·  view source on GitHub ↗

A boolean-like value that accepts `"on"`, `"true"`, `"off"`, `"false"`, or `""`. An empty string is treated as `false`.

Source from the content-addressed store, hash-verified

292///
293/// An empty string is treated as `false`.
294pub struct Toggle(pub bool);
295
296#[derive(Error, Debug)]
297pub enum ToggleParseError {

Callers 5

from_strMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected