pub trait IntoName: Sized {
    // Required method
    fn into_name(self) -> Result<Name, ProtoError>;
}
Expand description

Conversion into a Name

Required Methods§

source

fn into_name(self) -> Result<Name, ProtoError>

Convert this into Name

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoName for &String

source§

fn into_name(self) -> Result<Name, ProtoError>

Performs a utf8, IDNA or punycode, translation of the &String into Name

source§

impl IntoName for String

source§

fn into_name(self) -> Result<Name, ProtoError>

Performs a utf8, IDNA or punycode, translation of the String into Name

source§

impl<'a> IntoName for &'a str

source§

fn into_name(self) -> Result<Name, ProtoError>

Performs a utf8, IDNA or punycode, translation of the str into Name

Implementors§

source§

impl<T> IntoName for T
where T: Into<Name>,