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§
type OptBStr: AsOptBStrPtr
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".