Struct uefi::proto::device_path::messaging::PrimarySecondary
source · #[repr(transparent)]pub struct PrimarySecondary(pub u8);
Expand description
Whether the ATAPI device is primary or secondary.
Tuple Fields§
§0: u8
Implementations§
source§impl PrimarySecondary
impl PrimarySecondary
sourcepub const PRIMARY: PrimarySecondary = _
pub const PRIMARY: PrimarySecondary = _
Primary.
sourcepub const SECONDARY: PrimarySecondary = _
pub const SECONDARY: PrimarySecondary = _
Secondary.
Trait Implementations§
source§impl Clone for PrimarySecondary
impl Clone for PrimarySecondary
source§fn clone(&self) -> PrimarySecondary
fn clone(&self) -> PrimarySecondary
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 PrimarySecondary
impl Debug for PrimarySecondary
source§impl Hash for PrimarySecondary
impl Hash for PrimarySecondary
source§impl Ord for PrimarySecondary
impl Ord for PrimarySecondary
source§fn cmp(&self, other: &PrimarySecondary) -> Ordering
fn cmp(&self, other: &PrimarySecondary) -> 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 PrimarySecondary
impl PartialEq for PrimarySecondary
source§fn eq(&self, other: &PrimarySecondary) -> bool
fn eq(&self, other: &PrimarySecondary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrimarySecondary
impl PartialOrd for PrimarySecondary
source§fn partial_cmp(&self, other: &PrimarySecondary) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimarySecondary) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PrimarySecondary
impl Eq for PrimarySecondary
impl StructuralPartialEq for PrimarySecondary
Auto Trait Implementations§
impl Freeze for PrimarySecondary
impl RefUnwindSafe for PrimarySecondary
impl Send for PrimarySecondary
impl Sync for PrimarySecondary
impl Unpin for PrimarySecondary
impl UnwindSafe for PrimarySecondary
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