[][src]Function deep_learning_playground::utils::natural_transform::to_failure

pub fn to_failure<T, E: ToString>(x: Result<T, E>) -> Result<T, Error>

to_failure is a natural transformation that convers Result<T, E> to Result<T, Error>.

Arguments