Function build_algorithm

Source
pub fn build_algorithm(algorithm: &str) -> Result<BlendAlgorithm, PyErr>
Expand description

Attempts to parse a &String to a BlendAlgorithm. Returns the enum variant if it succeeds. Otherwise it returns a PyErr.