pub struct AnsiString(/* private fields */);
Expand description
C-style string encoded in the current Windows ANSI code page.
§Examples
let x: lcdsmartie_rs::AnsiString = "In most of the world, I can convert!".try_into()
.expect("The user should have Windows-1252 as the default codepage.");
let x: lcdsmartie_rs::AnsiString = "これは日本でしか通用しない。".try_into()
.expect("The user should live in Japan.");
Implementations§
Trait Implementations§
Source§impl Debug for AnsiString
impl Debug for AnsiString
Source§impl Default for AnsiString
impl Default for AnsiString
Source§impl From<&AnsiString> for String
impl From<&AnsiString> for String
Source§fn from(value: &AnsiString) -> Self
fn from(value: &AnsiString) -> Self
Converts to this type from the input type.
Source§impl From<&CStr> for AnsiString
impl From<&CStr> for AnsiString
Source§impl From<AnsiString> for String
impl From<AnsiString> for String
Source§fn from(value: AnsiString) -> Self
fn from(value: AnsiString) -> Self
Converts to this type from the input type.
Source§impl Ord for AnsiString
impl Ord for AnsiString
Source§fn cmp(&self, other: &AnsiString) -> Ordering
fn cmp(&self, other: &AnsiString) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AnsiString
impl PartialEq for AnsiString
Source§impl PartialOrd for AnsiString
impl PartialOrd for AnsiString
Source§impl TryFrom<&str> for AnsiString
impl TryFrom<&str> for AnsiString
Source§impl TryFrom<AnsiString> for CString
impl TryFrom<AnsiString> for CString
Source§impl TryFrom<String> for AnsiString
impl TryFrom<String> for AnsiString
impl Eq for AnsiString
impl StructuralPartialEq for AnsiString
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