Trait mica::MicaLanguageResultExt
source · pub trait MicaLanguageResultExt<T> {
fn to_language_error(self) -> Result<T, LanguageErrorKind>;
}
Expand description
Extensions for converting Result
s into a mica-language
FFI-friendly structure.
Required Methods§
sourcefn to_language_error(self) -> Result<T, LanguageErrorKind>
fn to_language_error(self) -> Result<T, LanguageErrorKind>
Maps the error in the result to a LanguageErrorKind
.