Struct webview2_com::CoTaskMemPWSTR
source · [−]pub struct CoTaskMemPWSTR<'a>(_, _);
Expand description
RAII holder for a PWSTR
which is allocated with Com::CoTaskMemAlloc
and freed
with Com::CoTaskMemFree
when dropped.
Implementations
sourceimpl<'a> CoTaskMemPWSTR<'a>
impl<'a> CoTaskMemPWSTR<'a>
sourcepub fn as_mut(&'a mut self) -> CoTaskMemMut<'a>
pub fn as_mut(&'a mut self) -> CoTaskMemMut<'a>
Get a mutable PWSTR
guard which borrows the pointer.
sourcepub fn as_ref(&'a self) -> CoTaskMemRef<'a>
pub fn as_ref(&'a self) -> CoTaskMemRef<'a>
Get a constant PCWSTR
guard which borrows the pointer.
Trait Implementations
sourceimpl<'a> Default for CoTaskMemPWSTR<'a>
impl<'a> Default for CoTaskMemPWSTR<'a>
sourceimpl<'a> Display for CoTaskMemPWSTR<'a>
impl<'a> Display for CoTaskMemPWSTR<'a>
sourceimpl<'a> Drop for CoTaskMemPWSTR<'a>
impl<'a> Drop for CoTaskMemPWSTR<'a>
sourceimpl<'a> From<&'a CoTaskMemPWSTR<'a>> for CoTaskMemRef<'a>
impl<'a> From<&'a CoTaskMemPWSTR<'a>> for CoTaskMemRef<'a>
sourcefn from(value: &'a CoTaskMemPWSTR<'a>) -> Self
fn from(value: &'a CoTaskMemPWSTR<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a mut CoTaskMemPWSTR<'a>> for CoTaskMemMut<'a>
impl<'a> From<&'a mut CoTaskMemPWSTR<'a>> for CoTaskMemMut<'a>
sourcefn from(value: &'a mut CoTaskMemPWSTR<'a>) -> Self
fn from(value: &'a mut CoTaskMemPWSTR<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&str> for CoTaskMemPWSTR<'a>
impl<'a> From<&str> for CoTaskMemPWSTR<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CoTaskMemPWSTR<'a>
impl<'a> !Send for CoTaskMemPWSTR<'a>
impl<'a> !Sync for CoTaskMemPWSTR<'a>
impl<'a> Unpin for CoTaskMemPWSTR<'a>
impl<'a> UnwindSafe for CoTaskMemPWSTR<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more