Skip to main content

IntoStr

Trait IntoStr 

Source
pub trait IntoStr<'a> {
    // Required method
    fn into_str(self) -> Str<'a>;
}
Expand description

Conversion into Str

Required Methods§

Source

fn into_str(self) -> Str<'a>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, 'b: 'a, const N: usize> IntoStr<'a> for &'b [u8; N]

Source§

fn into_str(self) -> Str<'a>

Source§

impl<'a, 'b: 'a> IntoStr<'a> for &'b [u8]

Source§

fn into_str(self) -> Str<'a>

Source§

impl<'a, 'b: 'a> IntoStr<'a> for &'b str

Source§

fn into_str(self) -> Str<'a>

Source§

impl<'a, const N: usize> IntoStr<'a> for [u8; N]

Source§

fn into_str(self) -> Str<'a>

Source§

impl<'a> IntoStr<'a> for String

Source§

fn into_str(self) -> Str<'a>

Source§

impl<'a> IntoStr<'a> for Vec<u8>

Source§

fn into_str(self) -> Str<'a>

Implementors§