Struct devicemapper::TargetTypeBuf
source · pub struct TargetTypeBuf { /* private fields */ }Expand description
The owned version of the DM identifier.
Implementations§
source§impl TargetTypeBuf
impl TargetTypeBuf
sourcepub fn new(value: String) -> DmResult<TargetTypeBuf>
pub fn new(value: String) -> DmResult<TargetTypeBuf>
Construct a new owned identifier.
Methods from Deref<Target = TargetType>§
Trait Implementations§
source§impl AsRef<TargetType> for TargetTypeBuf
impl AsRef<TargetType> for TargetTypeBuf
source§fn as_ref(&self) -> &TargetType
fn as_ref(&self) -> &TargetType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<TargetType> for TargetTypeBuf
impl Borrow<TargetType> for TargetTypeBuf
source§fn borrow(&self) -> &TargetType
fn borrow(&self) -> &TargetType
Immutably borrows from an owned value. Read more
source§impl Clone for TargetTypeBuf
impl Clone for TargetTypeBuf
source§fn clone(&self) -> TargetTypeBuf
fn clone(&self) -> TargetTypeBuf
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TargetTypeBuf
impl Debug for TargetTypeBuf
source§impl Deref for TargetTypeBuf
impl Deref for TargetTypeBuf
§type Target = TargetType
type Target = TargetType
The resulting type after dereferencing.
source§fn deref(&self) -> &TargetType
fn deref(&self) -> &TargetType
Dereferences the value.
source§impl Hash for TargetTypeBuf
impl Hash for TargetTypeBuf
source§impl PartialEq<TargetTypeBuf> for TargetTypeBuf
impl PartialEq<TargetTypeBuf> for TargetTypeBuf
source§fn eq(&self, other: &TargetTypeBuf) -> bool
fn eq(&self, other: &TargetTypeBuf) -> bool
This method tests for
self and other values to be equal, and is used
by ==.