[][src]Struct devicemapper::TargetType

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 ToOwned for TargetType[src]

type Owned = TargetTypeBuf

The resulting type after obtaining ownership.

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 Eq for TargetType[src]

impl PartialEq<TargetType> for TargetType[src]

impl AsRef<TargetType> for TargetTypeBuf[src]

impl Debug for TargetType[src]

impl Display for TargetType[src]

impl Hash for TargetType[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Borrow<TargetType> for TargetTypeBuf[src]

Auto Trait Implementations

impl Send for TargetType

impl Sync for TargetType

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]