Struct rust_gpu_tools::DeviceUuid
source · pub struct DeviceUuid(_);
Expand description
A unique identifier based on UUID of the device.
Trait Implementations§
source§impl Clone for DeviceUuid
impl Clone for DeviceUuid
source§fn clone(&self) -> DeviceUuid
fn clone(&self) -> DeviceUuid
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 DeviceUuid
impl Debug for DeviceUuid
source§impl Default for DeviceUuid
impl Default for DeviceUuid
source§fn default() -> DeviceUuid
fn default() -> DeviceUuid
Returns the “default value” for a type. Read more
source§impl Display for DeviceUuid
impl Display for DeviceUuid
Formats the UUID the same way as clinfo
does, as an example:
the output should looks like 46abccd6-022e-b783-572d-833f7104d05f
source§impl From<DeviceUuid> for [u8; 16]
impl From<DeviceUuid> for [u8; 16]
source§fn from(uuid: DeviceUuid) -> Self
fn from(uuid: DeviceUuid) -> Self
Converts to this type from the input type.
source§impl Hash for DeviceUuid
impl Hash for DeviceUuid
source§impl PartialEq<DeviceUuid> for DeviceUuid
impl PartialEq<DeviceUuid> for DeviceUuid
source§fn eq(&self, other: &DeviceUuid) -> bool
fn eq(&self, other: &DeviceUuid) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&str> for DeviceUuid
impl TryFrom<&str> for DeviceUuid
Converts a UUID formatted as aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee, e.g. 46abccd6-022e-b783-572d-833f7104d05f
impl Copy for DeviceUuid
impl Eq for DeviceUuid
impl StructuralEq for DeviceUuid
impl StructuralPartialEq for DeviceUuid
Auto Trait Implementations§
impl RefUnwindSafe for DeviceUuid
impl Send for DeviceUuid
impl Sync for DeviceUuid
impl Unpin for DeviceUuid
impl UnwindSafe for DeviceUuid
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