Skip to main content

StringEncoding

Struct StringEncoding 

Source
#[repr(transparent)]
pub struct StringEncoding(pub UInteger);
Expand description

String encoding options.

C++ equivalent: NS::StringEncoding

Tuple Fields§

§0: UInteger

Implementations§

Source§

impl StringEncoding

Source

pub const ASCII: Self

ASCII encoding.

C++ equivalent: NS::ASCIIStringEncoding

Source

pub const NEXTSTEP: Self

NEXTSTEP encoding.

C++ equivalent: NS::NEXTSTEPStringEncoding

Source

pub const JAPANESE_EUC: Self

Japanese EUC encoding.

C++ equivalent: NS::JapaneseEUCStringEncoding

Source

pub const UTF8: Self

UTF-8 encoding.

C++ equivalent: NS::UTF8StringEncoding

Source

pub const ISO_LATIN1: Self

ISO Latin 1 encoding.

C++ equivalent: NS::ISOLatin1StringEncoding

Source

pub const SYMBOL: Self

Symbol encoding.

C++ equivalent: NS::SymbolStringEncoding

Source

pub const NON_LOSSY_ASCII: Self

Non-lossy ASCII encoding.

C++ equivalent: NS::NonLossyASCIIStringEncoding

Source

pub const SHIFT_JIS: Self

Shift JIS encoding.

C++ equivalent: NS::ShiftJISStringEncoding

Source

pub const ISO_LATIN2: Self

ISO Latin 2 encoding.

C++ equivalent: NS::ISOLatin2StringEncoding

Source

pub const UNICODE: Self

Unicode encoding.

C++ equivalent: NS::UnicodeStringEncoding

Source

pub const WINDOWS_CP1251: Self

Windows CP1251 encoding.

C++ equivalent: NS::WindowsCP1251StringEncoding

Source

pub const WINDOWS_CP1252: Self

Windows CP1252 encoding.

C++ equivalent: NS::WindowsCP1252StringEncoding

Source

pub const WINDOWS_CP1253: Self

Windows CP1253 encoding.

C++ equivalent: NS::WindowsCP1253StringEncoding

Source

pub const WINDOWS_CP1254: Self

Windows CP1254 encoding.

C++ equivalent: NS::WindowsCP1254StringEncoding

Source

pub const WINDOWS_CP1250: Self

Windows CP1250 encoding.

C++ equivalent: NS::WindowsCP1250StringEncoding

Source

pub const ISO2022JP: Self

ISO 2022 JP encoding.

C++ equivalent: NS::ISO2022JPStringEncoding

Source

pub const MAC_OS_ROMAN: Self

Mac OS Roman encoding.

C++ equivalent: NS::MacOSRomanStringEncoding

Source

pub const UTF16: Self

UTF-16 encoding (alias for Unicode).

C++ equivalent: NS::UTF16StringEncoding

Source

pub const UTF16_BIG_ENDIAN: Self

UTF-16 big endian encoding.

C++ equivalent: NS::UTF16BigEndianStringEncoding

Source

pub const UTF16_LITTLE_ENDIAN: Self

UTF-16 little endian encoding.

C++ equivalent: NS::UTF16LittleEndianStringEncoding

Source

pub const UTF32: Self

UTF-32 encoding.

C++ equivalent: NS::UTF32StringEncoding

Source

pub const UTF32_BIG_ENDIAN: Self

UTF-32 big endian encoding.

C++ equivalent: NS::UTF32BigEndianStringEncoding

Source

pub const UTF32_LITTLE_ENDIAN: Self

UTF-32 little endian encoding.

C++ equivalent: NS::UTF32LittleEndianStringEncoding

Source

pub const fn raw(&self) -> UInteger

Returns the raw value.

Source

pub const fn from_raw(value: UInteger) -> Self

Creates from a raw value.

Trait Implementations§

Source§

impl Clone for StringEncoding

Source§

fn clone(&self) -> StringEncoding

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StringEncoding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StringEncoding

Source§

fn default() -> StringEncoding

Returns the “default value” for a type. Read more
Source§

impl Hash for StringEncoding

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for StringEncoding

Source§

fn eq(&self, other: &StringEncoding) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for StringEncoding

Source§

impl Eq for StringEncoding

Source§

impl StructuralPartialEq for StringEncoding

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.