[][src]Trait winstr::IntoOptBStr

pub trait IntoOptBStr {
    type OptBStr: AsOptBStrPtr;
    fn into(self) -> Self::OptBStr;
}

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.

Associated Types

Loading content...

Required methods

fn into(self) -> Self::OptBStr

Loading content...

Implementations on Foreign Types

impl IntoOptBStr for ()[src]

impl IntoOptBStr for String[src]

impl<'_> IntoOptBStr for &'_ String[src]

impl<'_> IntoOptBStr for &'_ str[src]

impl IntoOptBStr for OsString[src]

impl<'_> IntoOptBStr for &'_ OsString[src]

impl<'_> IntoOptBStr for &'_ OsStr[src]

impl IntoOptBStr for PathBuf[src]

impl<'_> IntoOptBStr for &'_ PathBuf[src]

impl<'_> IntoOptBStr for &'_ Path[src]

impl IntoOptBStr for Option<String>[src]

impl<'_> IntoOptBStr for Option<&'_ String>[src]

impl<'_> IntoOptBStr for Option<&'_ str>[src]

impl IntoOptBStr for Option<OsString>[src]

impl<'_> IntoOptBStr for Option<&'_ OsString>[src]

impl<'_> IntoOptBStr for Option<&'_ OsStr>[src]

impl IntoOptBStr for Option<PathBuf>[src]

impl<'_> IntoOptBStr for Option<&'_ PathBuf>[src]

impl<'_> IntoOptBStr for Option<&'_ Path>[src]

impl<'_> IntoOptBStr for &'_ Option<String>[src]

impl<'_, '_> IntoOptBStr for &'_ Option<&'_ String>[src]

impl<'_, '_> IntoOptBStr for &'_ Option<&'_ str>[src]

impl<'_> IntoOptBStr for &'_ Option<OsString>[src]

impl<'_, '_> IntoOptBStr for &'_ Option<&'_ OsString>[src]

impl<'_, '_> IntoOptBStr for &'_ Option<&'_ OsStr>[src]

impl<'_> IntoOptBStr for &'_ Option<PathBuf>[src]

impl<'_, '_> IntoOptBStr for &'_ Option<&'_ PathBuf>[src]

impl<'_, '_> IntoOptBStr for &'_ Option<&'_ Path>[src]

Loading content...

Implementors

impl<B: AsOptBStrPtr + Sized> IntoOptBStr for B[src]

type OptBStr = Self

Loading content...