Struct devicemapper::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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToOwned for DmUuid

§

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 StructuralEq for DmUuid

source§

impl StructuralPartialEq for DmUuid

Auto Trait Implementations§

§

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§

default fn to_string(&self) -> String

Converts the given value to a String. Read more