Skip to main content

CommandOutput

Trait CommandOutput 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl CommandOutput for ()

Source§

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

Implementors§