#[repr(packed(1))]pub struct BiosInfo {
pub vendor: u8,
pub version: u8,
pub address: u16,
pub date: u8,
pub size: u8,
pub characteristics: u64,
}
Fields§
§vendor: u8
§version: u8
§address: u16
§date: u8
§size: u8
§characteristics: u64
Trait Implementations§
source§impl Plain for BiosInfo
impl Plain for BiosInfo
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>where Self: Sized,
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>where Self: Sized,
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>where Self: Sized,
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>where Self: Sized,
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>where Self: Sized,
fn slice_from_mut_bytes_len( bytes: &mut [u8], len: usize ) -> Result<&mut [Self], Error>where Self: Sized,
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
impl Copy for BiosInfo
Auto Trait Implementations§
impl RefUnwindSafe for BiosInfo
impl Send for BiosInfo
impl Sync for BiosInfo
impl Unpin for BiosInfo
impl UnwindSafe for BiosInfo
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