pub fn build_algorithm(algorithm: &str) -> Result<BlendAlgorithm, PConvertError>
Expand description
Attempts to parse a &String
to a BlendAlgorithm
.
Returns the enum variant if it suceeds. Otherwise it returns a PConvertError
.
pub fn build_algorithm(algorithm: &str) -> Result<BlendAlgorithm, PConvertError>
Attempts to parse a &String
to a BlendAlgorithm
.
Returns the enum variant if it suceeds. Otherwise it returns a PConvertError
.