Struct rich_sdl2_rust::Sdl

source ·
pub struct Sdl { /* private fields */ }
Expand description

A root controller for SDL2. But some sub-feature does not require Sdl.

Implementations§

Setup the SDL2 system.

Panics

Panics if SDL2 system is already initialized such as there are existing Sdl instances

Returns the version of SDL2.

Returns the revision string.

Returns the revision number.

Gets the platform string.

On an unrecoverable error detected, panics with the provided context.

Reads the error string from SDL2.

Trait Implementations§

Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.