SemanticString

Trait SemanticString 

Source
pub trait SemanticString {
    // Required method
    fn as_os_str(&self) -> &OsStr;
}
Expand description

A string type that can be borrowed as an OsStr.

Required Methods§

Source

fn as_os_str(&self) -> &OsStr

Borrows the string as OsStr.

Implementations on Foreign Types§

Source§

impl SemanticString for String

Source§

fn as_os_str(&self) -> &OsStr

Source§

impl SemanticString for OsString

Source§

fn as_os_str(&self) -> &OsStr

Source§

impl<'s> SemanticString for &'s str

Source§

fn as_os_str(&self) -> &OsStr

Source§

impl<'s> SemanticString for &'s OsStr

Source§

fn as_os_str(&self) -> &OsStr

Source§

impl<'s> SemanticString for Cow<'s, str>

Source§

fn as_os_str(&self) -> &OsStr

Source§

impl<'s> SemanticString for Cow<'s, OsStr>

Source§

fn as_os_str(&self) -> &OsStr

Implementors§