Struct webview2_com::CoTaskMemPWSTR
source · pub struct CoTaskMemPWSTR<'a>(/* private fields */);
Expand description
RAII holder for a PWSTR
which is allocated with [Com::CoTaskMemAlloc
] and freed
with [Com::CoTaskMemFree
] when dropped.
Implementations§
source§impl<'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§
source§impl<'a> Default for CoTaskMemPWSTR<'a>
impl<'a> Default for CoTaskMemPWSTR<'a>
source§impl<'a> Display for CoTaskMemPWSTR<'a>
impl<'a> Display for CoTaskMemPWSTR<'a>
source§impl<'a> Drop for CoTaskMemPWSTR<'a>
impl<'a> Drop for CoTaskMemPWSTR<'a>
source§impl<'a> From<&'a CoTaskMemPWSTR<'a>> for CoTaskMemRef<'a>
impl<'a> From<&'a CoTaskMemPWSTR<'a>> for CoTaskMemRef<'a>
source§fn from(value: &'a CoTaskMemPWSTR<'a>) -> Self
fn from(value: &'a CoTaskMemPWSTR<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a mut CoTaskMemPWSTR<'a>> for CoTaskMemMut<'a>
impl<'a> From<&'a mut CoTaskMemPWSTR<'a>> for CoTaskMemMut<'a>
source§fn from(value: &'a mut CoTaskMemPWSTR<'a>) -> Self
fn from(value: &'a mut CoTaskMemPWSTR<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&str> for CoTaskMemPWSTR<'a>
impl<'a> From<&str> for CoTaskMemPWSTR<'a>
Auto Trait Implementations§
impl<'a> Freeze for CoTaskMemPWSTR<'a>
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§
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