Struct linux_uapi::x86_64::fb_var_screeninfo
source · #[repr(C)]pub struct fb_var_screeninfo {Show 29 fields
pub xres: __u32,
pub yres: __u32,
pub xres_virtual: __u32,
pub yres_virtual: __u32,
pub xoffset: __u32,
pub yoffset: __u32,
pub bits_per_pixel: __u32,
pub grayscale: __u32,
pub red: fb_bitfield,
pub green: fb_bitfield,
pub blue: fb_bitfield,
pub transp: fb_bitfield,
pub nonstd: __u32,
pub activate: __u32,
pub height: __u32,
pub width: __u32,
pub accel_flags: __u32,
pub pixclock: __u32,
pub left_margin: __u32,
pub right_margin: __u32,
pub upper_margin: __u32,
pub lower_margin: __u32,
pub hsync_len: __u32,
pub vsync_len: __u32,
pub sync: __u32,
pub vmode: __u32,
pub rotate: __u32,
pub colorspace: __u32,
pub reserved: [__u32; 4],
}
Fields§
§xres: __u32
§yres: __u32
§xres_virtual: __u32
§yres_virtual: __u32
§xoffset: __u32
§yoffset: __u32
§bits_per_pixel: __u32
§grayscale: __u32
§red: fb_bitfield
§green: fb_bitfield
§blue: fb_bitfield
§transp: fb_bitfield
§nonstd: __u32
§activate: __u32
§height: __u32
§width: __u32
§accel_flags: __u32
§pixclock: __u32
§left_margin: __u32
§right_margin: __u32
§upper_margin: __u32
§lower_margin: __u32
§hsync_len: __u32
§vsync_len: __u32
§sync: __u32
§vmode: __u32
§rotate: __u32
§colorspace: __u32
§reserved: [__u32; 4]
Trait Implementations§
source§impl Clone for fb_var_screeninfo
impl Clone for fb_var_screeninfo
source§fn clone(&self) -> fb_var_screeninfo
fn clone(&self) -> fb_var_screeninfo
Returns a copy 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 fb_var_screeninfo
impl Debug for fb_var_screeninfo
source§impl Default for fb_var_screeninfo
impl Default for fb_var_screeninfo
source§fn default() -> fb_var_screeninfo
fn default() -> fb_var_screeninfo
Returns the “default value” for a type. Read more
source§impl FromBytes for fb_var_screeninfo
impl FromBytes for fb_var_screeninfo
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for fb_var_screeninfo
impl FromZeros for fb_var_screeninfo
source§impl IntoBytes for fb_var_screeninfowhere
__u32: IntoBytes,
fb_bitfield: IntoBytes,
[__u32; 4]: IntoBytes,
HasPadding<fb_var_screeninfo, { _ }>: ShouldBe<false>,
impl IntoBytes for fb_var_screeninfowhere
__u32: IntoBytes,
fb_bitfield: IntoBytes,
[__u32; 4]: IntoBytes,
HasPadding<fb_var_screeninfo, { _ }>: ShouldBe<false>,
impl Copy for fb_var_screeninfo
Auto Trait Implementations§
impl Freeze for fb_var_screeninfo
impl RefUnwindSafe for fb_var_screeninfo
impl Send for fb_var_screeninfo
impl Sync for fb_var_screeninfo
impl Unpin for fb_var_screeninfo
impl UnwindSafe for fb_var_screeninfo
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