pub struct UnicodeString { /* private fields */ }Expand description
safe wrapper around UNICODE_STRING
Implementations§
Source§impl UnicodeString
impl UnicodeString
Sourcepub const unsafe fn from_static(s: &'static [u16]) -> Self
pub const unsafe fn from_static(s: &'static [u16]) -> Self
create from static wide string (null-terminated)
§Safety
s must be a valid null-terminated wide string that outlives this struct
Sourcepub fn from_wide_owned(wide: Vec<u16>) -> KmResult<Self>
pub fn from_wide_owned(wide: Vec<u16>) -> KmResult<Self>
create from wide string (takes ownership)
Sourcepub fn as_raw(&self) -> &UnicodeStringRaw
pub fn as_raw(&self) -> &UnicodeStringRaw
get raw structure for FFI
Sourcepub fn as_raw_mut(&mut self) -> &mut UnicodeStringRaw
pub fn as_raw_mut(&mut self) -> &mut UnicodeStringRaw
get mutable raw structure for FFI
Sourcepub fn as_ptr(&self) -> *const UnicodeStringRaw
pub fn as_ptr(&self) -> *const UnicodeStringRaw
get pointer to raw structure
Sourcepub fn as_mut_ptr(&mut self) -> *mut UnicodeStringRaw
pub fn as_mut_ptr(&mut self) -> *mut UnicodeStringRaw
get mutable pointer to raw structure
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnicodeString
impl RefUnwindSafe for UnicodeString
impl !Send for UnicodeString
impl !Sync for UnicodeString
impl Unpin for UnicodeString
impl UnwindSafe for UnicodeString
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