#[repr(transparent)]pub struct PCWSTR(pub *const u16);
Tuple Fields§
§0: *const u16
Implementations§
Source§impl PCWSTR
impl PCWSTR
Sourcepub unsafe fn len(&self) -> usize
pub unsafe fn len(&self) -> usize
String length without the trailing 0
§Safety
The PCWSTR
’s pointer needs to be valid for reads up until and including the next \0
.
Trait Implementations§
Source§impl From<PCWSTR> for WStringWrap
impl From<PCWSTR> for WStringWrap
impl Copy for PCWSTR
impl Eq for PCWSTR
impl StructuralPartialEq for PCWSTR
Auto Trait Implementations§
impl Freeze for PCWSTR
impl RefUnwindSafe for PCWSTR
impl !Send for PCWSTR
impl !Sync for PCWSTR
impl Unpin for PCWSTR
impl UnwindSafe for PCWSTR
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