Struct devicemapper::TargetTypeBuf
source · pub struct TargetTypeBuf { /* private fields */ }Expand description
The owned version of the DM identifier.
Implementations
sourceimpl 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
sourceimpl AsRef<TargetType> for TargetTypeBuf
impl AsRef<TargetType> for TargetTypeBuf
sourcefn as_ref(&self) -> &TargetType
fn as_ref(&self) -> &TargetType
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<TargetType> for TargetTypeBuf
impl Borrow<TargetType> for TargetTypeBuf
sourcefn borrow(&self) -> &TargetType
fn borrow(&self) -> &TargetType
Immutably borrows from an owned value. Read more
sourceimpl Clone for TargetTypeBuf
impl Clone for TargetTypeBuf
sourcefn clone(&self) -> TargetTypeBuf
fn clone(&self) -> TargetTypeBuf
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TargetTypeBuf
impl Debug for TargetTypeBuf
sourceimpl Deref for TargetTypeBuf
impl Deref for TargetTypeBuf
type Target = TargetType
type Target = TargetType
The resulting type after dereferencing.
sourcefn deref(&self) -> &TargetType
fn deref(&self) -> &TargetType
Dereferences the value.
sourceimpl Hash for TargetTypeBuf
impl Hash for TargetTypeBuf
sourceimpl PartialEq<TargetTypeBuf> for TargetTypeBuf
impl PartialEq<TargetTypeBuf> for TargetTypeBuf
sourcefn eq(&self, other: &TargetTypeBuf) -> bool
fn eq(&self, other: &TargetTypeBuf) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more