#[repr(C)]pub struct UnicodeString {
pub length: u16,
pub maximum_length: u16,
pub buffer: *mut u16,
}Expand description
raw UNICODE_STRING structure matching Windows definition
Fields§
§length: u16§maximum_length: u16§buffer: *mut u16Implementations§
Source§impl UnicodeString
impl UnicodeString
Sourcepub unsafe fn as_slice(&self) -> &[u16]
pub unsafe fn as_slice(&self) -> &[u16]
get string as wide char slice (without null terminator)
§Safety
buffer must be valid for length bytes
Sourcepub unsafe fn to_string_lowercase(&self) -> String
pub unsafe fn to_string_lowercase(&self) -> String
Sourcepub unsafe fn eq_ignore_case(&self, other: &str) -> bool
pub unsafe fn eq_ignore_case(&self, other: &str) -> bool
Sourcepub unsafe fn eq_wide_ignore_case(&self, other: &[u16]) -> bool
pub unsafe fn eq_wide_ignore_case(&self, other: &[u16]) -> bool
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