IntoResult

Trait IntoResult 

Source
pub trait IntoResult<Out>: Sized {
    // Required method
    fn into_result(self) -> Result<Out, RunSystemError>;
}
Expand description

A type that may be converted to the output of a System. This is used to allow systems to return either a plain value or a Result.

Required Methods§

Source

fn into_result(self) -> Result<Out, RunSystemError>

Converts this type into the system output type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoResult<bool> for <fn() -> ! as FnRet>::Output

Source§

impl IntoResult<()> for <fn() -> ! as FnRet>::Output

Source§

impl<T> IntoResult<T> for Result<T, RunSystemError>

Source§

impl<T> IntoResult<T> for Result<T, BevyError>

Implementors§

Source§

impl<T> IntoResult<T> for T