Struct sdl2_sys::SDL_Palette
source · [−]#[repr(C)]pub struct SDL_Palette {
pub ncolors: c_int,
pub colors: *mut SDL_Color,
pub version: Uint32,
pub refcount: c_int,
}
Fields
ncolors: c_int
colors: *mut SDL_Color
version: Uint32
refcount: c_int
Trait Implementations
sourceimpl Clone for SDL_Palette
impl Clone for SDL_Palette
sourcefn clone(&self) -> SDL_Palette
fn clone(&self) -> SDL_Palette
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SDL_Palette
Auto Trait Implementations
impl RefUnwindSafe for SDL_Palette
impl !Send for SDL_Palette
impl !Sync for SDL_Palette
impl Unpin for SDL_Palette
impl UnwindSafe for SDL_Palette
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more