pub trait IntoFluxionError {
// Required method
fn into_fluxion_error(self, context: &str) -> FluxionError;
// Provided method
fn into_fluxion(self) -> FluxionError
where Self: Sized { ... }
}Expand description
Extension trait for converting errors into FluxionError
This trait is automatically implemented for all types that implement
std::error::Error + Send + Sync + 'static, allowing easy conversion
to FluxionError.
Required Methods§
Sourcefn into_fluxion_error(self, context: &str) -> FluxionError
fn into_fluxion_error(self, context: &str) -> FluxionError
Convert this error into a FluxionError with additional context
Provided Methods§
Sourcefn into_fluxion(self) -> FluxionErrorwhere
Self: Sized,
fn into_fluxion(self) -> FluxionErrorwhere
Self: Sized,
Convert this error into a FluxionError without additional context