pub struct TargetType { /* private fields */ }
Expand description

The borrowed version of the DM identifier.

Implementations§

source§

impl TargetType

source

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

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<TargetType> for TargetTypeBuf

source§

fn as_ref(&self) -> &TargetType

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

impl Borrow<TargetType> for TargetTypeBuf

source§

fn borrow(&self) -> &TargetType

Immutably borrows from an owned value. Read more
source§

impl Debug for TargetType

source§

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

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

impl Display for TargetType

source§

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

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

impl Hash for TargetType

source§

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

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

impl PartialEq<TargetType> for TargetType

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToOwned for TargetType

§

type Owned = TargetTypeBuf

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> TargetTypeBuf

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 TargetType

source§

impl StructuralEq for TargetType

source§

impl StructuralPartialEq for TargetType

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more