sdl3 0.18.4

Bindings to SDL3, a cross-platform library to abstract the platform-specific details for building applications.
Documentation
1
2
3
pub fn option_to_ptr<T>(opt: Option<&T>) -> *const T {
    opt.map_or(std::ptr::null(), |v| v as *const _)
}