#[repr(transparent)]pub struct PCWSTR(pub *const u16);Expand description
A pointer to a constant null-terminated UTF-16 string.
Service Fabric uses UTF-16 on every supported platform. This is deliberately
distinct from windows_core::PCWSTR, whose length operations use the
platform wcslen even where wchar_t is not 16 bits.
Tuple Fields§
§0: *const u16Implementations§
Source§impl PCWSTR
impl PCWSTR
Sourcepub unsafe fn len(&self) -> usize
pub unsafe fn len(&self) -> usize
Returns the UTF-16 string length without the trailing null.
§Safety
The pointer must be valid for reads up to and including the next null u16.
Trait Implementations§
impl Copy for PCWSTR
impl Eq for PCWSTR
Source§impl From<&PCWSTR> for Uri
impl From<&PCWSTR> for Uri
Source§fn from(value: &FABRIC_URI) -> Self
fn from(value: &FABRIC_URI) -> Self
Converts to this type from the input type.
Source§impl From<PCWSTR> for Uri
impl From<PCWSTR> for Uri
Source§fn from(value: FABRIC_URI) -> Self
fn from(value: FABRIC_URI) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PCWSTR
Auto Trait Implementations§
impl !Send for PCWSTR
impl !Sync for PCWSTR
impl Freeze for PCWSTR
impl RefUnwindSafe for PCWSTR
impl Unpin for PCWSTR
impl UnsafeUnpin 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