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

pub fn to_io<T, E: ToString>(x: Result<T, E>, kind: ErrorKind) -> Result<T>

failure_to_io is a natural transformation that convers Result<T, E> to std::io::Result<T>.

Arguments