Skip to main content

smart_value_of

Function smart_value_of 

Source
pub fn smart_value_of(value: &str) -> StaticMode
Expand description

Mirrors Java StaticAbilityMode.smartValueOf(value). Case-insensitive (Java uses compareToIgnoreCase); unrecognised values are returned as StaticMode::Other(<original casing>) rather than throwing.