fn from(op: &str) -> VSpaceOperation {
        match op {
            "MapMem" => VSpaceOperation::MapMem,
            "UnmapMem" => VSpaceOperation::UnmapMem,
            "MapDevice" => VSpaceOperation::MapDevice,
            "MapMemFrame" => VSpaceOperation::MapMemFrame,
            "Identify" => VSpaceOperation::Identify,
            "MapPMem" => VSpaceOperation::MapPMem,
            "UnmapPMem" => VSpaceOperation::UnmapPMem,
            _ => VSpaceOperation::Unknown,
        }
    }
/// Construct a VSpaceOperation enum based on a str.
Construct a VSpaceOperation enum based on a str.
Construct a VSpaceOperation enum based on a str .
fn from(op: &str) -> VSpaceOperation {
        match op {
            "MapMem" => VSpaceOperation::MapMem,
            "UnmapMem" => VSpaceOperation::UnmapMem,
            "MapDevice" => VSpaceOperation::MapDevice,
            "MapMemFrame" => VSpaceOperation::MapMemFrame,
            "Identify" => VSpaceOperation::Identify,
            "MapPMem" => VSpaceOperation::MapPMem,
            "UnmapPMem" => VSpaceOperation::UnmapPMem,
            _ => VSpaceOperation::Unknown,
        }
    }
fn from ( op : & str ) -> VSpaceOperation { match op { " " => VSpaceOperation :: MapMem , " " => VSpaceOperation :: UnmapMem , " " => VSpaceOperation :: MapDevice , " " => VSpaceOperation :: MapMemFrame , " " => VSpaceOperation :: Identify , " " => VSpaceOperation :: MapPMem , " " => VSpaceOperation :: UnmapPMem , _ => VSpaceOperation :: Unknown , } }
Construct a VSpaceOperation enum based on a str.
Construct a VSpaceOperation enum based on a str .
op
&str
op
&str