#[repr(transparent)]pub struct WidePtr(_);
Expand description
Zero terminated UTF-16 string. Have the same layout as *const u16
.
Used for convenience so it can be returned from extern funcs.
Implementations
sourceimpl WidePtr
impl WidePtr
sourcepub unsafe fn into_string(self) -> String
pub unsafe fn into_string(self) -> String
sourcepub const unsafe fn new_unchecked(p: *const u16) -> Self
pub const unsafe fn new_unchecked(p: *const u16) -> Self
sourcepub fn as_mut_ptr(&mut self) -> *mut u16
pub fn as_mut_ptr(&mut self) -> *mut u16
Returns the mutable pointer to the string.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WidePtr
impl !Send for WidePtr
impl !Sync for WidePtr
impl Unpin for WidePtr
impl UnwindSafe for WidePtr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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