IntoOptBStr

Trait IntoOptBStr 

Source
pub trait IntoOptBStr {
    type OptBStr: AsOptBStrPtr;

    // Required method
    fn into(self) -> Self::OptBStr;
}
Expand description

Similar to Into<Option<BString>>, except that this won’t require copying &BStr or &BString arguments. Additionally, you can use () in lieu of None - whereas trying to pass None to a function accepting Into<Option<BString>> would cause ambiguous type errors.

Required Associated Types§

Required Methods§

Source

fn into(self) -> Self::OptBStr

Implementations on Foreign Types§

Source§

impl IntoOptBStr for &Option<&str>

Source§

impl IntoOptBStr for &Option<&String>

Source§

impl IntoOptBStr for &Option<&OsStr>

Source§

impl IntoOptBStr for &Option<&OsString>

Source§

impl IntoOptBStr for &Option<&Path>

Source§

impl IntoOptBStr for &Option<&PathBuf>

Source§

impl IntoOptBStr for &Option<String>

Source§

impl IntoOptBStr for &Option<OsString>

Source§

impl IntoOptBStr for &Option<PathBuf>

Source§

impl IntoOptBStr for &str

Source§

impl IntoOptBStr for &String

Source§

impl IntoOptBStr for &OsStr

Source§

impl IntoOptBStr for &OsString

Source§

impl IntoOptBStr for &Path

Source§

impl IntoOptBStr for &PathBuf

Source§

impl IntoOptBStr for Option<&str>

Source§

impl IntoOptBStr for Option<&String>

Source§

impl IntoOptBStr for Option<&OsStr>

Source§

impl IntoOptBStr for Option<&OsString>

Source§

impl IntoOptBStr for Option<&Path>

Source§

impl IntoOptBStr for Option<&PathBuf>

Source§

impl IntoOptBStr for Option<String>

Source§

impl IntoOptBStr for Option<OsString>

Source§

impl IntoOptBStr for Option<PathBuf>

Source§

impl IntoOptBStr for ()

Source§

impl IntoOptBStr for String

Source§

impl IntoOptBStr for OsString

Source§

impl IntoOptBStr for PathBuf

Implementors§