#[repr(transparent)]pub struct SDL_AssertState(pub c_uint);Expand description
Possible outcomes from a triggered assertion.
When an enabled assertion triggers, it may call the assertion handler (possibly one provided by the app via SDL_SetAssertionHandler), which will return one of these values, possibly after asking the user.
Then SDL will respond based on this outcome (loop around to retry the condition, try to break in a debugger, kill the program, or ignore the problem).
Available Since: This enum is available since SDL 3.2.0.
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_AssertState
impl SDL_AssertState
Sourcepub const SDL_ASSERTION_RETRY: SDL_AssertState
pub const SDL_ASSERTION_RETRY: SDL_AssertState
< Retry the assert immediately.
Sourcepub const SDL_ASSERTION_BREAK: SDL_AssertState
pub const SDL_ASSERTION_BREAK: SDL_AssertState
< Make the debugger trigger a breakpoint.
Sourcepub const SDL_ASSERTION_ABORT: SDL_AssertState
pub const SDL_ASSERTION_ABORT: SDL_AssertState
< Terminate the program.
Sourcepub const SDL_ASSERTION_IGNORE: SDL_AssertState
pub const SDL_ASSERTION_IGNORE: SDL_AssertState
< Ignore the assert.
Sourcepub const SDL_ASSERTION_ALWAYS_IGNORE: SDL_AssertState
pub const SDL_ASSERTION_ALWAYS_IGNORE: SDL_AssertState
< Ignore the assert from now on.
Trait Implementations§
Source§impl Clone for SDL_AssertState
impl Clone for SDL_AssertState
Source§fn clone(&self) -> SDL_AssertState
fn clone(&self) -> SDL_AssertState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_AssertState
impl Debug for SDL_AssertState
Source§impl Hash for SDL_AssertState
impl Hash for SDL_AssertState
Source§impl PartialEq for SDL_AssertState
impl PartialEq for SDL_AssertState
impl Copy for SDL_AssertState
impl Eq for SDL_AssertState
impl StructuralPartialEq for SDL_AssertState
Auto Trait Implementations§
impl Freeze for SDL_AssertState
impl RefUnwindSafe for SDL_AssertState
impl Send for SDL_AssertState
impl Sync for SDL_AssertState
impl Unpin for SDL_AssertState
impl UnsafeUnpin for SDL_AssertState
impl UnwindSafe for SDL_AssertState
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