Enum sdl2_sys::SDL_PixelType
source · [−]#[repr(u32)]
pub enum SDL_PixelType {
SDL_PIXELTYPE_UNKNOWN,
SDL_PIXELTYPE_INDEX1,
SDL_PIXELTYPE_INDEX4,
SDL_PIXELTYPE_INDEX8,
SDL_PIXELTYPE_PACKED8,
SDL_PIXELTYPE_PACKED16,
SDL_PIXELTYPE_PACKED32,
SDL_PIXELTYPE_ARRAYU8,
SDL_PIXELTYPE_ARRAYU16,
SDL_PIXELTYPE_ARRAYU32,
SDL_PIXELTYPE_ARRAYF16,
SDL_PIXELTYPE_ARRAYF32,
}
Expand description
Pixel type.
Variants
SDL_PIXELTYPE_UNKNOWN
SDL_PIXELTYPE_INDEX1
SDL_PIXELTYPE_INDEX4
SDL_PIXELTYPE_INDEX8
SDL_PIXELTYPE_PACKED8
SDL_PIXELTYPE_PACKED16
SDL_PIXELTYPE_PACKED32
SDL_PIXELTYPE_ARRAYU8
SDL_PIXELTYPE_ARRAYU16
SDL_PIXELTYPE_ARRAYU32
SDL_PIXELTYPE_ARRAYF16
SDL_PIXELTYPE_ARRAYF32
Trait Implementations
sourceimpl Clone for SDL_PixelType
impl Clone for SDL_PixelType
sourcefn clone(&self) -> SDL_PixelType
fn clone(&self) -> SDL_PixelType
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
sourceimpl Debug for SDL_PixelType
impl Debug for SDL_PixelType
sourceimpl Hash for SDL_PixelType
impl Hash for SDL_PixelType
sourceimpl PartialEq<SDL_PixelType> for SDL_PixelType
impl PartialEq<SDL_PixelType> for SDL_PixelType
impl Copy for SDL_PixelType
impl Eq for SDL_PixelType
impl StructuralEq for SDL_PixelType
impl StructuralPartialEq for SDL_PixelType
Auto Trait Implementations
impl RefUnwindSafe for SDL_PixelType
impl Send for SDL_PixelType
impl Sync for SDL_PixelType
impl Unpin for SDL_PixelType
impl UnwindSafe for SDL_PixelType
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