pub enum AppResult {
Continue,
Success,
Failure,
}Expand description
This is the Rust enum equivalent to SDL_AppResult.
Variants§
Trait Implementations§
Source§impl From<AppResult> for SDL_AppResult
impl From<AppResult> for SDL_AppResult
Source§impl From<SDL_AppResult> for AppResult
impl From<SDL_AppResult> for AppResult
Source§fn from(value: SDL_AppResult) -> Self
fn from(value: SDL_AppResult) -> Self
Converts to this type from the input type.
Source§impl FromResidual<Option<Infallible>> for AppResult
Available on crate feature nightly only.
impl FromResidual<Option<Infallible>> for AppResult
Available on crate feature
nightly only.Source§fn from_residual(_residual: Option<Infallible>) -> Self
fn from_residual(_residual: Option<Infallible>) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible
Residual type. Read moreSource§impl<E: Display> FromResidual<Result<Infallible, E>> for AppResult
Available on crate features nightly and log-errors only.
impl<E: Display> FromResidual<Result<Infallible, E>> for AppResult
Available on crate features
nightly and log-errors only.Source§fn from_residual(residual: Result<Infallible, E>) -> Self
fn from_residual(residual: Result<Infallible, E>) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible
Residual type. Read moreSource§impl IntoAppResult for AppResult
impl IntoAppResult for AppResult
fn into_sdl_app_result(self) -> SDL_AppResult
fn into_app_result(self) -> AppResult
Source§impl Ord for AppResult
impl Ord for AppResult
Source§impl PartialOrd for AppResult
impl PartialOrd for AppResult
impl Copy for AppResult
impl Eq for AppResult
impl StructuralPartialEq for AppResult
Auto Trait Implementations§
impl Freeze for AppResult
impl RefUnwindSafe for AppResult
impl Send for AppResult
impl Sync for AppResult
impl Unpin for AppResult
impl UnsafeUnpin for AppResult
impl UnwindSafe for AppResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more