pub fn as_ptr(&self) -> *const u16
    {
        // The BStr invariant 1 states the ptr must be valid BSTR pointer,
        // which is u32-aligned.
        #![allow(clippy::cast_ptr_alignment)]

        // 0x1 is a marker pointer
        let ptr = self.0.as_ptr();
        if self.0.is_empty() && ptr as usize == 0x1 {
            std::ptr::null()
        } else {
            ptr as *const u16
        }
    }
/// Returns the pointer as a 16-bit wide character pointer.
Returns the pointer as a 16-bit wide character pointer.
Returns the pointer as a 16 - bit wide character pointer .
pub fn as_ptr(&self) -> *const u16
    {
        // The BStr invariant 1 states the ptr must be valid BSTR pointer,
        // which is u32-aligned.
        #![allow(clippy::cast_ptr_alignment)]
        // 0x1 is a marker pointer
        let ptr = self.0.as_ptr();
        if self.0.is_empty() && ptr as usize == 0x1 {
            std::ptr::null()
        } else {
            ptr as *const u16
        }
    }
pub fn as_ptr ( & self ) -> * const u16 { // The BStr invariant 1 states the ptr must be valid BSTR pointer, // which is u32-aligned. # ! [ allow ( clippy cast_ptr_alignment ) ] // 0x1 is a marker pointer let ptr = self . 0 . as_ptr ( ) ; if self . 0 . is_empty ( ) && ptr as usize == 0x1 { std :: ptr :: null ( ) } else { ptr as * const u16 } }
Returns the pointer as a 16-bit wide character pointer.
Returns the pointer as a 16 - bit wide character pointer .
&self
&self