Intern

Trait Intern 

Source
pub trait Intern {
    type Interned: 'static;

    // Required method
    fn intern(self) -> &'static Self::Interned;
}

Required Associated Types§

Source

type Interned: 'static

Required Methods§

Source

fn intern(self) -> &'static Self::Interned

Implementations on Foreign Types§

Source§

impl Intern for CString

Source§

type Interned = CString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl Intern for String

Source§

type Interned = String

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl Intern for OsString

Source§

type Interned = OsString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl Intern for PathBuf

Source§

type Interned = PathBuf

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a str

Source§

type Interned = String

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a CString

Source§

type Interned = CString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a String

Source§

type Interned = String

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a CStr

Source§

type Interned = CString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a OsStr

Source§

type Interned = OsString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a OsString

Source§

type Interned = OsString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a Path

Source§

type Interned = PathBuf

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a PathBuf

Source§

type Interned = PathBuf

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a mut CString

Source§

type Interned = CString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a mut String

Source§

type Interned = String

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a mut OsString

Source§

type Interned = OsString

Source§

fn intern(self) -> &'static Self::Interned

Source§

impl<'a> Intern for &'a mut PathBuf

Source§

type Interned = PathBuf

Source§

fn intern(self) -> &'static Self::Interned

Implementors§