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§
Trait Implementations§
Source§impl<T> IntoResult<T> for Result<T, BevyError>
impl<T> IntoResult<T> for Result<T, BevyError>
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
Source§impl<T> IntoResult<T> for Result<T, RunSystemError>
impl<T> IntoResult<T> for Result<T, RunSystemError>
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.