use alloc::format; use alloc::string::String; use core::fmt::Debug; /// An enum for all errors that may occur pub enum IFError { /// An error that was created in some dependency and then converted to `IFError` General(String), } impl From for IFError { /// Convert from other error fn from(e: T) -> Self { Self::General(format!("{:?}", e)) } } pub type IFResult = Result;