#[repr(C, align(8))]pub struct VBEInfoTag { /* private fields */ }
Expand description
This tag contains VBE metadata, VBE controller information returned by the VBE Function 00h and VBE mode information returned by the VBE Function 01h.
Implementations§
Source§impl VBEInfoTag
impl VBEInfoTag
Sourcepub fn new(
mode: u16,
interface_segment: u16,
interface_offset: u16,
interface_length: u16,
control_info: VBEControlInfo,
mode_info: VBEModeInfo,
) -> Self
pub fn new( mode: u16, interface_segment: u16, interface_offset: u16, interface_length: u16, control_info: VBEControlInfo, mode_info: VBEModeInfo, ) -> Self
Constructs a new tag.
Sourcepub const fn mode(&self) -> u16
pub const fn mode(&self) -> u16
Indicates current video mode in the format specified in VBE 3.0.
Sourcepub const fn interface_segment(&self) -> u16
pub const fn interface_segment(&self) -> u16
Returns the segment of the table of a protected mode interface defined in VBE 2.0+.
If the information for a protected mode interface is not available this field is set to zero.
Sourcepub const fn interface_offset(&self) -> u16
pub const fn interface_offset(&self) -> u16
Returns the segment offset of the table of a protected mode interface defined in VBE 2.0+.
If the information for a protected mode interface is not available this field is set to zero.
Sourcepub const fn interface_length(&self) -> u16
pub const fn interface_length(&self) -> u16
Returns the segment length of the table of a protected mode interface defined in VBE 2.0+.
If the information for a protected mode interface is not available this field is set to zero.
Sourcepub const fn control_info(&self) -> VBEControlInfo
pub const fn control_info(&self) -> VBEControlInfo
Returns VBE controller information returned by the VBE Function 00h
.
Sourcepub const fn mode_info(&self) -> VBEModeInfo
pub const fn mode_info(&self) -> VBEModeInfo
Returns VBE mode information returned by the VBE Function 01h
.
Trait Implementations§
Source§impl Clone for VBEInfoTag
impl Clone for VBEInfoTag
Source§fn clone(&self) -> VBEInfoTag
fn clone(&self) -> VBEInfoTag
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VBEInfoTag
impl Debug for VBEInfoTag
Source§impl Hash for VBEInfoTag
impl Hash for VBEInfoTag
Source§impl MaybeDynSized for VBEInfoTag
impl MaybeDynSized for VBEInfoTag
Source§const BASE_SIZE: usize = 784usize
const BASE_SIZE: usize = 784usize
size_of::<T>()
isn’t sufficient, as for example
the type could have three u32
fields, which would add an implicit
u32
padding. However, this constant must always fulfill
BASE_SIZE >= size_of::<Self::Header>()
. Read moreSource§fn dst_len(_: &TagHeader)
fn dst_len(_: &TagHeader)
Source§fn payload(&self) -> &[u8]
fn payload(&self) -> &[u8]
Header
of the type.Source§impl Ord for VBEInfoTag
impl Ord for VBEInfoTag
Source§impl PartialEq for VBEInfoTag
impl PartialEq for VBEInfoTag
Source§impl PartialOrd for VBEInfoTag
impl PartialOrd for VBEInfoTag
Source§fn partial_cmp(&self, other: &VBEInfoTag) -> Option<Ordering>
fn partial_cmp(&self, other: &VBEInfoTag) -> Option<Ordering>
Source§impl Tag for VBEInfoTag
impl Tag for VBEInfoTag
impl Copy for VBEInfoTag
impl Eq for VBEInfoTag
impl StructuralPartialEq for VBEInfoTag
Auto Trait Implementations§
impl Freeze for VBEInfoTag
impl RefUnwindSafe for VBEInfoTag
impl Send for VBEInfoTag
impl Sync for VBEInfoTag
impl Unpin for VBEInfoTag
impl UnwindSafe for VBEInfoTag
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
clone_to_uninit
)