#[repr(transparent)]pub struct ProgrammingInterface(pub u8);
Expand description
ProgrammingInterface (aka, program interface byte) identifies the PCI device’s register-level programming interface.
Values pulled from https://wiki.osdev.org/PCI#Class_Codes.
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
Source§impl Clone for ProgrammingInterface
impl Clone for ProgrammingInterface
Source§fn clone(&self) -> ProgrammingInterface
fn clone(&self) -> ProgrammingInterface
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 ProgrammingInterface
impl Debug for ProgrammingInterface
Source§impl From<ProgrammingInterface> for u8
impl From<ProgrammingInterface> for u8
Source§fn from(c: ProgrammingInterface) -> Self
fn from(c: ProgrammingInterface) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ProgrammingInterface
impl From<u8> for ProgrammingInterface
Source§impl Hash for ProgrammingInterface
impl Hash for ProgrammingInterface
Source§impl Inspect for ProgrammingInterface
impl Inspect for ProgrammingInterface
Source§impl Ord for ProgrammingInterface
impl Ord for ProgrammingInterface
Source§fn cmp(&self, other: &ProgrammingInterface) -> Ordering
fn cmp(&self, other: &ProgrammingInterface) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProgrammingInterface
impl PartialEq for ProgrammingInterface
Source§impl PartialOrd for ProgrammingInterface
impl PartialOrd for ProgrammingInterface
impl Copy for ProgrammingInterface
impl Eq for ProgrammingInterface
impl StructuralPartialEq for ProgrammingInterface
Auto Trait Implementations§
impl Freeze for ProgrammingInterface
impl RefUnwindSafe for ProgrammingInterface
impl Send for ProgrammingInterface
impl Sync for ProgrammingInterface
impl Unpin for ProgrammingInterface
impl UnwindSafe for ProgrammingInterface
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