Skip to main content

AsName

Trait AsName 

Source
pub trait AsName {
    // Required method
    fn name(&self) -> &Name;
}
Expand description

Converts a null-terminated byte-string into a Name.

Required Methods§

Source

fn name(&self) -> &Name

Converts a null-terminated byte-string into a Name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsName for str

Source§

fn name(&self) -> &Name

Source§

impl AsName for [u8]

Source§

fn name(&self) -> &Name

Implementors§