DmName

Struct DmName 

Source
pub struct DmName { /* private fields */ }
Expand description

The borrowed version of the DM identifier.

Implementations§

Source§

impl DmName

Source

pub fn new(value: &str) -> DmResult<&DmName>

Create a new borrowed identifier from a &str.

Source

pub fn as_bytes(&self) -> &[u8]

Get the inner value as bytes

Trait Implementations§

Source§

impl AsRef<DmName> for DmNameBuf

Source§

fn as_ref(&self) -> &DmName

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<DmName> for DmNameBuf

Source§

fn borrow(&self) -> &DmName

Immutably borrows from an owned value. Read more
Source§

impl Debug for DmName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DmName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DmName

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for DmName

Source§

fn eq(&self, other: &DmName) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ToOwned for DmName

Source§

type Owned = DmNameBuf

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> DmNameBuf

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl Eq for DmName

Source§

impl StructuralPartialEq for DmName

Auto Trait Implementations§

§

impl Freeze for DmName

§

impl RefUnwindSafe for DmName

§

impl Send for DmName

§

impl !Sized for DmName

§

impl Sync for DmName

§

impl Unpin for DmName

§

impl UnwindSafe for DmName

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more