Enum hwlocality::object::types::BridgeType
source · #[repr(u32)]pub enum BridgeType {
Host = 0,
PCI = 1,
}
Expand description
Type of one side (upstream or downstream) of an I/O bridge
Variants§
Trait Implementations§
source§impl Arbitrary for BridgeType
Available on crate feature proptest
only.
impl Arbitrary for BridgeType
Available on crate feature
proptest
only.§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<Range<usize>, fn(_: usize) -> BridgeType>
type Strategy = Map<Range<usize>, fn(_: usize) -> BridgeType>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
source§impl Clone for BridgeType
impl Clone for BridgeType
source§fn clone(&self) -> BridgeType
fn clone(&self) -> BridgeType
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 BridgeType
impl Debug for BridgeType
source§impl Display for BridgeType
impl Display for BridgeType
source§impl From<BridgeType> for u32
impl From<BridgeType> for u32
source§fn from(enum_value: BridgeType) -> Self
fn from(enum_value: BridgeType) -> Self
Converts to this type from the input type.
source§impl Hash for BridgeType
impl Hash for BridgeType
source§impl PartialEq for BridgeType
impl PartialEq for BridgeType
source§fn eq(&self, other: &BridgeType) -> bool
fn eq(&self, other: &BridgeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sequence for BridgeType
impl Sequence for BridgeType
source§impl TryFrom<u32> for BridgeType
impl TryFrom<u32> for BridgeType
§type Error = TryFromPrimitiveError<BridgeType>
type Error = TryFromPrimitiveError<BridgeType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BridgeType
impl TryFromPrimitive for BridgeType
type Primitive = u32
type Error = TryFromPrimitiveError<BridgeType>
const NAME: &'static str = "BridgeType"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BridgeType
impl Eq for BridgeType
impl StructuralPartialEq for BridgeType
Auto Trait Implementations§
impl Freeze for BridgeType
impl RefUnwindSafe for BridgeType
impl Send for BridgeType
impl Sync for BridgeType
impl Unpin for BridgeType
impl UnwindSafe for BridgeType
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