Result

Type Alias Result 

Source
pub type Result<T = (), E = BevyError> = Result<T, E>;
Expand description

A result type for use in fallible systems, commands and observers.

The BevyError type is a type-erased error type with optional Bevy-specific diagnostics.

Aliased Type§

pub enum Result<T = (), E = BevyError> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

Source§

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

Source§

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

Converts this type into the system output type.
Source§

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

Source§

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

Converts this type into the system output type.