#[repr(C)]pub struct SDL_AssertData {
pub always_ignore: bool,
pub trigger_count: c_uint,
pub condition: *const c_char,
pub filename: *const c_char,
pub linenum: c_int,
pub function: *const c_char,
pub next: *const SDL_AssertData,
}Expand description
Information about an assertion failure.
This structure is filled in with information about a triggered assertion, used by the assertion handler, then added to the assertion report. This is returned as a linked list from SDL_GetAssertionReport().
Available Since: This struct is available since SDL 3.2.0.
Fields§
§always_ignore: bool< true if app should always continue when assertion is triggered.
trigger_count: c_uint< Number of times this assertion has been triggered.
condition: *const c_char< A string of this assert’s test code.
filename: *const c_char< The source file where this assert lives.
linenum: c_int< The line in filename where this assert lives.
function: *const c_char< The name of the function where this assert lives.
next: *const SDL_AssertData< next item in the linked list.
Trait Implementations§
Source§impl Clone for SDL_AssertData
impl Clone for SDL_AssertData
Source§fn clone(&self) -> SDL_AssertData
fn clone(&self) -> SDL_AssertData
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_AssertData
impl Debug for SDL_AssertData
Source§impl Default for SDL_AssertData
impl Default for SDL_AssertData
Source§impl Hash for SDL_AssertData
impl Hash for SDL_AssertData
impl Copy for SDL_AssertData
Auto Trait Implementations§
impl Freeze for SDL_AssertData
impl RefUnwindSafe for SDL_AssertData
impl !Send for SDL_AssertData
impl !Sync for SDL_AssertData
impl Unpin for SDL_AssertData
impl UnsafeUnpin for SDL_AssertData
impl UnwindSafe for SDL_AssertData
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