pub struct PciHeaderType(/* private fields */);Implementations§
Source§impl PciHeaderType
impl PciHeaderType
Sourcepub const fn with_value_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_value_checked(self, value: u8) -> Result<Self, ()>
Bits: 0..7
Sourcepub const fn with_value(self, value: u8) -> Self
pub const fn with_value(self, value: u8) -> Self
Bits: 0..7
Sourcepub const fn with_mfd_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_mfd_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Trait Implementations§
Source§impl Clone for PciHeaderType
impl Clone for PciHeaderType
Source§fn clone(&self) -> PciHeaderType
fn clone(&self) -> PciHeaderType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PciHeaderType
Source§impl Debug for PciHeaderType
impl Debug for PciHeaderType
Source§impl Default for PciHeaderType
impl Default for PciHeaderType
Source§impl From<PciHeaderType> for u8
impl From<PciHeaderType> for u8
Source§fn from(v: PciHeaderType) -> Self
fn from(v: PciHeaderType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PciHeaderType
impl RefUnwindSafe for PciHeaderType
impl Send for PciHeaderType
impl Sync for PciHeaderType
impl Unpin for PciHeaderType
impl UnsafeUnpin for PciHeaderType
impl UnwindSafe for PciHeaderType
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