Struct aci_registry::SubclassId
source · pub struct SubclassId(/* private fields */);
Expand description
Generic type for the subclasses of device classes.
This is a new type arround u16
, no validity checking is performed.
If you are using a well known device class, you may want to use one of the well-known subclass enums.
Implementations§
source§impl SubclassId
impl SubclassId
sourcepub const fn from_id(x: u16) -> Self
pub const fn from_id(x: u16) -> Self
Obtains the appropriate SubclassId
from the given numeric id.
sourcepub const fn id(self) -> u16
pub const fn id(self) -> u16
Converts the SubclassId
to the appropriate numeric id
Trait Implementations§
source§impl Clone for SubclassId
impl Clone for SubclassId
source§fn clone(&self) -> SubclassId
fn clone(&self) -> SubclassId
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 SubclassId
impl Debug for SubclassId
source§impl From<BridgeSubclass> for SubclassId
impl From<BridgeSubclass> for SubclassId
source§fn from(x: BridgeSubclass) -> Self
fn from(x: BridgeSubclass) -> Self
Converts to this type from the input type.
source§impl From<CleverGpuSubclass> for SubclassId
impl From<CleverGpuSubclass> for SubclassId
source§fn from(x: CleverGpuSubclass) -> Self
fn from(x: CleverGpuSubclass) -> Self
Converts to this type from the input type.
source§impl From<NetworkSubclass> for SubclassId
impl From<NetworkSubclass> for SubclassId
source§fn from(x: NetworkSubclass) -> Self
fn from(x: NetworkSubclass) -> Self
Converts to this type from the input type.
source§impl From<UnclassifiedSubclass> for SubclassId
impl From<UnclassifiedSubclass> for SubclassId
source§fn from(x: UnclassifiedSubclass) -> Self
fn from(x: UnclassifiedSubclass) -> Self
Converts to this type from the input type.
source§impl From<UnknownSubclass> for SubclassId
impl From<UnknownSubclass> for SubclassId
source§fn from(x: UnknownSubclass) -> Self
fn from(x: UnknownSubclass) -> Self
Converts to this type from the input type.
source§impl Hash for SubclassId
impl Hash for SubclassId
source§impl PartialEq for SubclassId
impl PartialEq for SubclassId
source§fn eq(&self, other: &SubclassId) -> bool
fn eq(&self, other: &SubclassId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SubclassId
impl Eq for SubclassId
impl StructuralPartialEq for SubclassId
Auto Trait Implementations§
impl Freeze for SubclassId
impl RefUnwindSafe for SubclassId
impl Send for SubclassId
impl Sync for SubclassId
impl Unpin for SubclassId
impl UnwindSafe for SubclassId
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