pub struct AnsiString { /* private fields */ }Expand description
safe wrapper around ANSI_STRING
Implementations§
Source§impl AnsiString
impl AnsiString
Sourcepub const unsafe fn from_static(s: &'static [u8]) -> Self
pub const unsafe fn from_static(s: &'static [u8]) -> Self
create from static byte string
§Safety
s must be a valid null-terminated string that outlives this struct
Sourcepub fn as_raw(&self) -> &AnsiStringRaw
pub fn as_raw(&self) -> &AnsiStringRaw
get raw structure for FFI
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnsiString
impl RefUnwindSafe for AnsiString
impl !Send for AnsiString
impl !Sync for AnsiString
impl Unpin for AnsiString
impl UnwindSafe for AnsiString
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