Struct devicemapper::DmName
[−]
[src]
pub struct DmName { /* fields omitted */ }
The borrowed version of the DM identifier.
Methods
impl DmName
[src]
pub fn new(value: &str) -> DmResult<&DmName>
[src]
Create a new borrowed identifier from a &str
.
pub fn as_bytes(&self) -> &[u8]
[src]
Get the inner value as bytes
Trait Implementations
impl Debug for DmName
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for DmName
[src]
fn eq(&self, __arg_0: &DmName) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DmName) -> bool
[src]
This method tests for !=
.
impl Eq for DmName
[src]
impl Hash for DmName
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl ToOwned for DmName
[src]
type Owned = DmNameBuf
fn to_owned(&self) -> DmNameBuf
[src]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Display for DmName
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more