pub struct BStr(/* private fields */);
Expand description
Implementations§
Source§impl BStr
impl BStr
Sourcepub unsafe fn from_bstr_unbounded<'b>(bstr: BSTR) -> Option<&'b BStr>
pub unsafe fn from_bstr_unbounded<'b>(bstr: BSTR) -> Option<&'b BStr>
Sourcepub fn as_bstr(&self) -> BSTR
pub fn as_bstr(&self) -> BSTR
The &BStr
as a winapi-friendly BSTR
.
§Safety
s.as_bstr()
is guaranteed to be0u16
-terminated- It is not safe to modify the contents of the BSTR through the returned pointer!
Trait Implementations§
Source§impl Ord for &BStr
impl Ord for &BStr
Source§impl PartialOrd<&[u16]> for &BStr
impl PartialOrd<&[u16]> for &BStr
Source§impl PartialOrd<&BStr> for &[u16]
impl PartialOrd<&BStr> for &[u16]
Source§impl PartialOrd<&BStr> for &BStr
impl PartialOrd<&BStr> for &BStr
Source§impl PartialOrd<&BStr> for &OsStr
impl PartialOrd<&BStr> for &OsStr
Source§impl PartialOrd<&BStr> for &Path
impl PartialOrd<&BStr> for &Path
Source§impl PartialOrd<&BStr> for &str
impl PartialOrd<&BStr> for &str
Source§impl PartialOrd<&BStr> for [u16]
impl PartialOrd<&BStr> for [u16]
Source§impl PartialOrd<&BStr> for BString
impl PartialOrd<&BStr> for BString
Source§impl PartialOrd<&BStr> for Cow<'_, [u16]>
impl PartialOrd<&BStr> for Cow<'_, [u16]>
Source§impl PartialOrd<&BStr> for Cow<'_, OsStr>
impl PartialOrd<&BStr> for Cow<'_, OsStr>
Source§impl PartialOrd<&BStr> for Cow<'_, Path>
impl PartialOrd<&BStr> for Cow<'_, Path>
Source§impl PartialOrd<&BStr> for Cow<'_, str>
impl PartialOrd<&BStr> for Cow<'_, str>
Source§impl PartialOrd<&BStr> for OsStr
impl PartialOrd<&BStr> for OsStr
Source§impl PartialOrd<&BStr> for OsString
impl PartialOrd<&BStr> for OsString
Source§impl PartialOrd<&BStr> for Path
impl PartialOrd<&BStr> for Path
Source§impl PartialOrd<&BStr> for PathBuf
impl PartialOrd<&BStr> for PathBuf
Source§impl PartialOrd<&BStr> for String
impl PartialOrd<&BStr> for String
Source§impl PartialOrd<&BStr> for str
impl PartialOrd<&BStr> for str
Source§impl PartialOrd<&OsStr> for &BStr
impl PartialOrd<&OsStr> for &BStr
Source§impl PartialOrd<&Path> for &BStr
impl PartialOrd<&Path> for &BStr
Source§impl PartialOrd<&str> for &BStr
impl PartialOrd<&str> for &BStr
Source§impl PartialOrd<[u16]> for &BStr
impl PartialOrd<[u16]> for &BStr
Source§impl PartialOrd<BString> for &BStr
impl PartialOrd<BString> for &BStr
Source§impl PartialOrd<Cow<'_, [u16]>> for &BStr
impl PartialOrd<Cow<'_, [u16]>> for &BStr
Source§impl PartialOrd<Cow<'_, OsStr>> for &BStr
impl PartialOrd<Cow<'_, OsStr>> for &BStr
Source§impl PartialOrd<Cow<'_, Path>> for &BStr
impl PartialOrd<Cow<'_, Path>> for &BStr
Source§impl PartialOrd<Cow<'_, str>> for &BStr
impl PartialOrd<Cow<'_, str>> for &BStr
Source§impl PartialOrd<OsStr> for &BStr
impl PartialOrd<OsStr> for &BStr
Source§impl PartialOrd<OsString> for &BStr
impl PartialOrd<OsString> for &BStr
Source§impl PartialOrd<Path> for &BStr
impl PartialOrd<Path> for &BStr
Source§impl PartialOrd<PathBuf> for &BStr
impl PartialOrd<PathBuf> for &BStr
Source§impl PartialOrd<String> for &BStr
impl PartialOrd<String> for &BStr
Source§impl PartialOrd<str> for &BStr
impl PartialOrd<str> for &BStr
impl Eq for &BStr
Auto Trait Implementations§
impl Freeze for BStr
impl RefUnwindSafe for BStr
impl Send for BStr
impl Sync for BStr
impl Unpin for BStr
impl UnwindSafe for BStr
Blanket Implementations§
Source§impl<B> AsOptBStrPtr for B
impl<B> AsOptBStrPtr for B
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more