pub struct KCFStringEncoding { /* private fields */ }Expand description
An integer type for constants used to specify supported string encodings in various CFString functions.
Implementations§
Source§impl KCFStringEncoding
impl KCFStringEncoding
Sourcepub const WINDOWS_LATIN1: Self
pub const WINDOWS_LATIN1: Self
An encoding constant that identifies the Windows Latin 1 encoding (ANSI codepage 1252).
Sourcepub const ISOLATIN1: Self
pub const ISOLATIN1: Self
An encoding constant that identifies the ISO Latin 1 encoding (ISO 8859-1)
Sourcepub const NEXT_STEP_LATIN: Self
pub const NEXT_STEP_LATIN: Self
An encoding constant that identifies the NextStep/OpenStep encoding.
Sourcepub const ASCII: Self
pub const ASCII: Self
An encoding constant that identifies the ASCII encoding (decimal values 0 through 127).
Sourcepub const NON_LOSSY_ASCII: Self
pub const NON_LOSSY_ASCII: Self
An encoding constant that identifies non-lossy ASCII encoding.
Sourcepub const UTF16: Self
pub const UTF16: Self
An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16Format encoding (alias of Unicode).
Sourcepub const UTF16BE: Self
pub const UTF16BE: Self
An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16BEFormat encoding. This constant specifies big-endian byte order.
Sourcepub const UTF16LE: Self
pub const UTF16LE: Self
An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16LEFormat encoding. This constant specifies little-endian byte order.
Sourcepub const UTF32: Self
pub const UTF32: Self
An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32Format encoding.
Sourcepub const UTF32BE: Self
pub const UTF32BE: Self
An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32BEFormat encoding. This constant specifies big-endian byte order.
Sourcepub const UTF32LE: Self
pub const UTF32LE: Self
An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32LEFormat encoding. This constant specifies little-endian byte order.
pub const MAC_JAPANESE: Self
pub const MAC_CHINESE_TRAD: Self
pub const MAC_KOREAN: Self
pub const MAC_ARABIC: Self
pub const MAC_HEBREW: Self
pub const MAC_GREEK: Self
pub const MAC_CYRILLIC: Self
pub const MAC_DEVANAGARI: Self
pub const MAC_GURMUKHI: Self
pub const MAC_GUJARATI: Self
pub const MAC_ORIYA: Self
pub const MAC_BENGALI: Self
pub const MAC_TAMIL: Self
pub const MAC_TELUGU: Self
pub const MAC_KANNADA: Self
pub const MAC_MALAYALAM: Self
pub const MAC_SINHALESE: Self
pub const MAC_BURMESE: Self
pub const MAC_KHMER: Self
pub const MAC_THAI: Self
pub const MAC_LAOTIAN: Self
pub const MAC_GEORGIAN: Self
pub const MAC_ARMENIAN: Self
pub const MAC_CHINESE_SIMP: Self
pub const MAC_TIBETAN: Self
pub const MAC_MONGOLIAN: Self
pub const MAC_ETHIOPIC: Self
pub const MAC_CENTRAL_EUR_ROMAN: Self
pub const MAC_VIETNAMESE: Self
pub const MAC_EXT_ARABIC: Self
pub const MAC_SYMBOL: Self
pub const MAC_DINGBATS: Self
pub const MAC_TURKISH: Self
pub const MAC_CROATIAN: Self
pub const MAC_ICELANDIC: Self
pub const MAC_ROMANIAN: Self
pub const MAC_CELTIC: Self
pub const MAC_GAELIC: Self
pub const MAC_FARSI: Self
pub const MAC_UKRAINIAN: Self
pub const MAC_INUIT: Self
pub const MAC_VT100: Self
pub const MAC_HFS: Self
pub const ISO_LATIN2: Self
pub const ISO_LATIN3: Self
pub const ISO_LATIN4: Self
pub const ISO_LATIN_CYRILLIC: Self
pub const ISO_LATIN_ARABIC: Self
pub const ISO_LATIN_GREEK: Self
pub const ISO_LATIN_HEBREW: Self
pub const ISO_LATIN5: Self
pub const ISO_LATIN6: Self
pub const ISO_LATIN_THAI: Self
pub const ISO_LATIN7: Self
pub const ISO_LATIN8: Self
pub const ISO_LATIN9: Self
pub const ISO_LATIN10: Self
pub const DOS_LATIN_US: Self
pub const DOS_GREEK: Self
pub const DOS_BALTIC_RIM: Self
pub const DOS_LATIN1: Self
pub const DOS_GREEK1: Self
pub const DOS_LATIN2: Self
pub const DOS_CYRILLIC: Self
pub const DOS_TURKISH: Self
pub const DOS_PORTUGUESE: Self
pub const DOS_ICELANDIC: Self
pub const DOS_HEBREW: Self
pub const DOS_CANADIAN_FRENCH: Self
pub const DOS_ARABIC: Self
pub const DOS_NORDIC: Self
pub const DOS_RUSSIAN: Self
pub const DOS_GREEK2: Self
pub const DOS_THAI: Self
pub const DOS_JAPANESE: Self
pub const DOS_CHINESE_SIMPLIFF: Self
pub const DOS_KOREAN: Self
pub const DOS_CHINESE_TRAD: Self
pub const WINDOWS_LATIN2: Self
pub const WINDOWS_CYRILLIC: Self
pub const WINDOWS_GREEK: Self
pub const WINDOWS_LATIN5: Self
pub const WINDOWS_HEBREW: Self
pub const WINDOWS_ARABICC: Self
pub const WINDOWS_BALTIC_RIM: Self
pub const WINDOWS_VIETNAMESE: Self
pub const WINDOWS_KOREAN_JOHAB: Self
pub const ANSEL: Self
pub const JIS_X0201_76: Self
pub const JIS_X0208_83: Self
pub const JIS_X0208_90: Self
pub const JIS_X0212_90: Self
pub const JIS_C6226_78: Self
pub const SHIFT_JIS_X0213: Self
pub const SHIFT_JIS_X0213_MEN_KU_TEN: Self
pub const GB_2312_80: Self
pub const GBK_95: Self
pub const GB_18030_2000: Self
pub const KSC_5601_87: Self
pub const KSC_5601_92_JOHAB: Self
pub const CNS_11643_92_P1: Self
pub const CNS_11643_92_P2: Self
pub const CNS_11643_92_P3: Self
pub const ISO_2022_JP: Self
pub const ISO_2022_JP_2: Self
pub const ISO_2022_JP_1: Self
pub const ISO_2022_JP_3: Self
pub const ISO_2022_CN: Self
pub const ISO_2022_CN_EXT: Self
pub const ISO_2022_KR: Self
pub const EUC_JP: Self
pub const EUC_CN: Self
pub const EUC_TW: Self
pub const EUC_KR: Self
pub const SHIFT_JIS: Self
pub const KOI8_R: Self
pub const BIG5: Self
pub const MAC_ROMAN_LATIN1: Self
pub const HZ_GB_2312: Self
pub const BIG5_HKSCS_1999: Self
pub const VISCII: Self
pub const KOI8_U: Self
pub const BIG5_E: Self
pub const NEXT_STEP_JAPANESE: Self
pub const EBCDIC_US: Self
pub const EBCDIC_CP037: Self
pub const UTF7: Self
pub const UTF7_IMAP: Self
pub const SHIFT_JIS_X0213_00: Self
Sourcepub const fn bits(&self) -> CFStringEncoding
pub const fn bits(&self) -> CFStringEncoding
Returns the raw value of the flags currently stored.
Sourcepub const fn from_bits(bits: CFStringEncoding) -> Option<Self>
pub const fn from_bits(bits: CFStringEncoding) -> Option<Self>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: CFStringEncoding) -> Self
pub const fn from_bits_truncate(bits: CFStringEncoding) -> Self
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: CFStringEncoding) -> Self
pub const unsafe fn from_bits_unchecked(bits: CFStringEncoding) -> Self
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
§Safety
The caller of the bitflags! macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked() has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true if all of the flags in other are contained within self.
Sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Inserts or removes the specified flags depending on the passed value.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection between the flags in self and
other.
Specifically, the returned set contains only the flags which are
present in both self and other.
This is equivalent to using the & operator (e.g.
ops::BitAnd), as in flags & other.
Sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
Returns the union of between the flags in self and other.
Specifically, the returned set contains all flags which are
present in either self or other, including any which are
present in both (see Self::symmetric_difference if that
is undesirable).
This is equivalent to using the | operator (e.g.
ops::BitOr), as in flags | other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference between the flags in self and other.
Specifically, the returned set contains all flags present in
self, except for the ones present in other.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other (and this syntax is also supported).
This is equivalent to using the - operator (e.g.
ops::Sub), as in flags - other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference between the flags
in self and other.
Specifically, the returned set contains the flags present which
are present in self or other, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self and other.
This is equivalent to using the ^ operator (e.g.
ops::BitXor), as in flags ^ other.
Sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all() and self (e.g. Self::all() - self)
This is equivalent to using the ! operator (e.g.
ops::Not), as in !flags.
Trait Implementations§
Source§impl Binary for KCFStringEncoding
impl Binary for KCFStringEncoding
Source§impl BitAnd for KCFStringEncoding
impl BitAnd for KCFStringEncoding
Source§impl BitAndAssign for KCFStringEncoding
impl BitAndAssign for KCFStringEncoding
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
Source§impl BitOr for KCFStringEncoding
impl BitOr for KCFStringEncoding
Source§fn bitor(self, other: KCFStringEncoding) -> Self
fn bitor(self, other: KCFStringEncoding) -> Self
Returns the union of the two sets of flags.
Source§type Output = KCFStringEncoding
type Output = KCFStringEncoding
| operator.Source§impl BitOrAssign for KCFStringEncoding
impl BitOrAssign for KCFStringEncoding
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
Source§impl BitXor for KCFStringEncoding
impl BitXor for KCFStringEncoding
Source§impl BitXorAssign for KCFStringEncoding
impl BitXorAssign for KCFStringEncoding
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
Source§impl Clone for KCFStringEncoding
impl Clone for KCFStringEncoding
Source§fn clone(&self) -> KCFStringEncoding
fn clone(&self) -> KCFStringEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KCFStringEncoding
impl Debug for KCFStringEncoding
Source§impl Extend<KCFStringEncoding> for KCFStringEncoding
impl Extend<KCFStringEncoding> for KCFStringEncoding
Source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<KCFStringEncoding> for KCFStringEncoding
impl FromIterator<KCFStringEncoding> for KCFStringEncoding
Source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
Source§impl Hash for KCFStringEncoding
impl Hash for KCFStringEncoding
Source§impl LowerHex for KCFStringEncoding
impl LowerHex for KCFStringEncoding
Source§impl Not for KCFStringEncoding
impl Not for KCFStringEncoding
Source§impl Octal for KCFStringEncoding
impl Octal for KCFStringEncoding
Source§impl Ord for KCFStringEncoding
impl Ord for KCFStringEncoding
Source§fn cmp(&self, other: &KCFStringEncoding) -> Ordering
fn cmp(&self, other: &KCFStringEncoding) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for KCFStringEncoding
impl PartialEq for KCFStringEncoding
Source§impl PartialOrd for KCFStringEncoding
impl PartialOrd for KCFStringEncoding
Source§impl Sub for KCFStringEncoding
impl Sub for KCFStringEncoding
Source§impl SubAssign for KCFStringEncoding
impl SubAssign for KCFStringEncoding
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.