Struct devicemapper::TargetType
[−]
[src]
pub struct TargetType { /* fields omitted */ }
The borrowed version of the DM identifier.
Methods
impl TargetType
[src]
pub fn new(value: &str) -> DmResult<&TargetType>
[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 TargetType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for TargetType
[src]
fn eq(&self, __arg_0: &TargetType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TargetType) -> bool
[src]
This method tests for !=
.
impl Eq for TargetType
[src]
impl Hash for TargetType
[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 TargetType
[src]
type Owned = TargetTypeBuf
fn to_owned(&self) -> TargetTypeBuf
[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 TargetType
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl AsRef<TargetType> for TargetTypeBuf
[src]
fn as_ref(&self) -> &TargetType
[src]
Performs the conversion.
impl Borrow<TargetType> for TargetTypeBuf
[src]
fn borrow(&self) -> &TargetType
[src]
Immutably borrows from an owned value. Read more