/// Returns the optimization for the given name, or `None` if the name is invalid.
Returns the optimization for the given name, or `None` if the name is invalid.
Returns the optimization for the given name or ` None ` if the name is invalid .
pub fn from_name(name: &str) -> Option<Optimization> {
        match name {
            "O0" => Some(Optimization::O0),
            "O1" => Some(Optimization::O1),
            "O2" => Some(Optimization::O2),
            "O3" => Some(Optimization::O3),
            _ => None,
        }
    }
pub fn from_name ( name : & str ) -> Option < Optimization > { match name { " " => Some ( Optimization :: O0 ) , " " => Some ( Optimization :: O1 ) , " " => Some ( Optimization :: O2 ) , " " => Some ( Optimization :: O3 ) , _ => None , } }
Returns the optimization for the given name, or `None` if the name is invalid.
Returns the optimization for the given name or ` None ` if the name is invalid .
name
&str