#[repr(transparent)]pub struct SDL_AssertState(pub c_int);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).
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
RETRY | SDL_ASSERTION_RETRY | Retry the assert immediately. |
BREAK | SDL_ASSERTION_BREAK | Make the debugger trigger a breakpoint. |
ABORT | SDL_ASSERTION_ABORT | Terminate the program. |
IGNORE | SDL_ASSERTION_IGNORE | Ignore the assert. |
ALWAYS_IGNORE | SDL_ASSERTION_ALWAYS_IGNORE | Ignore the assert from now on. |
Tuple Fields§
§0: c_intImplementations§
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
Available on crate feature debug-impls only.
impl Debug for SDL_AssertState
Available on crate feature
debug-impls only.Source§impl Default for SDL_AssertState
impl Default for SDL_AssertState
Source§fn default() -> SDL_AssertState
fn default() -> SDL_AssertState
Returns the “default value” for a type. Read more
Source§impl From<SDL_AssertState> for c_int
impl From<SDL_AssertState> for c_int
Source§fn from(value: SDL_AssertState) -> Self
fn from(value: SDL_AssertState) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_AssertState
Available on crate feature metadata only.
impl GroupMetadata for SDL_AssertState
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_AssertState
impl Hash for SDL_AssertState
Source§impl Ord for SDL_AssertState
impl Ord for SDL_AssertState
Source§fn cmp(&self, other: &SDL_AssertState) -> Ordering
fn cmp(&self, other: &SDL_AssertState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_AssertState> for c_int
impl PartialEq<SDL_AssertState> for c_int
Source§impl PartialEq<i32> for SDL_AssertState
impl PartialEq<i32> for SDL_AssertState
Source§impl PartialEq for SDL_AssertState
impl PartialEq for SDL_AssertState
Source§impl PartialOrd for SDL_AssertState
impl PartialOrd 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 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