DmUuid

Struct DmUuid 

Source
pub struct DmUuid { /* private fields */ }
Expand description

The borrowed version of the DM identifier.

Implementations§

Source§

impl DmUuid

Source

pub fn new(value: &str) -> DmResult<&DmUuid>

Create a new borrowed identifier from a &str.

Source

pub fn as_bytes(&self) -> &[u8]

Get the inner value as bytes

Trait Implementations§

Source§

impl AsRef<DmUuid> for DmUuidBuf

Source§

fn as_ref(&self) -> &DmUuid

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<DmUuid> for DmUuidBuf

Source§

fn borrow(&self) -> &DmUuid

Immutably borrows from an owned value. Read more
Source§

impl Debug for DmUuid

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DmUuid

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DmUuid

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for DmUuid

Source§

fn eq(&self, other: &DmUuid) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ToOwned for DmUuid

Source§

type Owned = DmUuidBuf

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> DmUuidBuf

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl Eq for DmUuid

Source§

impl StructuralPartialEq for DmUuid

Auto Trait Implementations§

§

impl Freeze for DmUuid

§

impl RefUnwindSafe for DmUuid

§

impl Send for DmUuid

§

impl !Sized for DmUuid

§

impl Sync for DmUuid

§

impl Unpin for DmUuid

§

impl UnwindSafe for DmUuid

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more