fn from_str(str: &str) -> Result<Self, Self::Err> {
        match str {
            "lin" => Ok(DecayFunction::Linear),
            "exp" => Ok(DecayFunction::Exponential),
            _ => Err(ParseEnumError(format!(
                "Not a decay function: {}. Must be one of (lin|exp)",
                str
            ))),
        }
    }
/// Parse a string to a `DecayFunction`.
///
/// Accepts `"lin" | "exp"`.
Parse a string to a `DecayFunction`.
Parse a string to a ` DecayFunction ` .
fn from_str(str: &str) -> Result<Self, Self::Err> {
        match str {
            "lin" => Ok(DecayFunction::Linear),
            "exp" => Ok(DecayFunction::Exponential),
            _ => Err(ParseEnumError(format!(
                "Not a decay function: {}. Must be one of (lin|exp)",
                str
            ))),
        }
    }
fn from_str ( str : & str ) -> Result < Self , Self :: Err > { match str { " " => Ok ( DecayFunction :: Linear ) , " " => Ok ( DecayFunction :: Exponential ) , _ => Err ( ParseEnumError ( format ! ( " " str ) ) ) , } }
Parse a string to a `DecayFunction`.
Parse a string to a ` DecayFunction ` .
str
&str
str
&str