pub struct DeviceIdentifier {
pub vendor_id: VendorID,
pub product_id: ProductID,
}Fields§
§vendor_id: VendorID§product_id: ProductIDTrait Implementations§
Source§impl Clone for DeviceIdentifier
impl Clone for DeviceIdentifier
Source§fn clone(&self) -> DeviceIdentifier
fn clone(&self) -> DeviceIdentifier
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 DeviceIdentifier
Source§impl Debug for DeviceIdentifier
impl Debug for DeviceIdentifier
Source§impl Display for DeviceIdentifier
impl Display for DeviceIdentifier
impl Eq for DeviceIdentifier
Source§impl Hash for DeviceIdentifier
impl Hash for DeviceIdentifier
Source§impl Ord for DeviceIdentifier
impl Ord for DeviceIdentifier
Source§fn cmp(&self, other: &DeviceIdentifier) -> Ordering
fn cmp(&self, other: &DeviceIdentifier) -> Ordering
1.21.0 (const: unstable) · 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 DeviceIdentifier
impl PartialEq for DeviceIdentifier
Source§fn eq(&self, other: &DeviceIdentifier) -> bool
fn eq(&self, other: &DeviceIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DeviceIdentifier
impl PartialOrd for DeviceIdentifier
impl StructuralPartialEq for DeviceIdentifier
Auto Trait Implementations§
impl Freeze for DeviceIdentifier
impl RefUnwindSafe for DeviceIdentifier
impl Send for DeviceIdentifier
impl Sync for DeviceIdentifier
impl Unpin for DeviceIdentifier
impl UnsafeUnpin for DeviceIdentifier
impl UnwindSafe for DeviceIdentifier
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