#[repr(C)]pub struct SDL_Locale {
pub language: *const c_char,
pub country: *const c_char,
}Expand description
A struct to provide locale data.
Locale data is split into a spoken language, like English, and an optional country, like Canada. The language will be in ISO-639 format (so English would be “en”), and the country, if not NULL, will be an ISO-3166 country code (so Canada would be “CA”).
Available Since: This function is available since SDL 3.2.0.
See Also: SDL_GetPreferredLocales
Fields§
§language: *const c_char< A language name, like “en” for English.
country: *const c_char< A country, like “US” for America. Can be NULL.
Trait Implementations§
Source§impl Clone for SDL_Locale
impl Clone for SDL_Locale
Source§fn clone(&self) -> SDL_Locale
fn clone(&self) -> SDL_Locale
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_Locale
impl Debug for SDL_Locale
Source§impl Default for SDL_Locale
impl Default for SDL_Locale
Source§impl Hash for SDL_Locale
impl Hash for SDL_Locale
impl Copy for SDL_Locale
Auto Trait Implementations§
impl Freeze for SDL_Locale
impl RefUnwindSafe for SDL_Locale
impl !Send for SDL_Locale
impl !Sync for SDL_Locale
impl Unpin for SDL_Locale
impl UnsafeUnpin for SDL_Locale
impl UnwindSafe for SDL_Locale
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