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 Hash for TargetTypeBuf
impl Hash for TargetTypeBuf
source§impl PartialEq for TargetTypeBuf
impl PartialEq 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 ==.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.
impl Eq for TargetTypeBuf
impl StructuralEq for TargetTypeBuf
impl StructuralPartialEq for TargetTypeBuf
Auto Trait Implementations§
impl RefUnwindSafe for TargetTypeBuf
impl Send for TargetTypeBuf
impl Sync for TargetTypeBuf
impl Unpin for TargetTypeBuf
impl UnwindSafe for TargetTypeBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more