Struct sdl2_sys::ScreenFormat
source · [−]#[repr(C)]pub struct ScreenFormat {
pub ext_data: *mut XExtData,
pub depth: c_int,
pub bits_per_pixel: c_int,
pub scanline_pad: c_int,
}
Fields
ext_data: *mut XExtData
depth: c_int
bits_per_pixel: c_int
scanline_pad: c_int
Trait Implementations
sourceimpl Clone for ScreenFormat
impl Clone for ScreenFormat
sourcefn clone(&self) -> ScreenFormat
fn clone(&self) -> ScreenFormat
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 ScreenFormat
Auto Trait Implementations
impl RefUnwindSafe for ScreenFormat
impl !Send for ScreenFormat
impl !Sync for ScreenFormat
impl Unpin for ScreenFormat
impl UnwindSafe for ScreenFormat
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