Skip to main content

CommandOutput

Trait CommandOutput 

pub trait CommandOutput: Sized {
    // Required method
    fn to_err(self) -> Option<BevyError>;
}
Expand description

A trait implemented for types that can be used as the output of a Command.

Required Methods§

fn to_err(self) -> Option<BevyError>

Converts the output into an optional BevyError.

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§

§

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

§

impl CommandOutput for ()

§

impl<T, E> CommandOutput for Result<T, E>
where E: Into<BevyError>,

Implementors§