Enum dicom_encoding::text::SpecificCharacterSet [−][src]
#[non_exhaustive]
pub enum SpecificCharacterSet {
Default,
IsoIr100,
IsoIr101,
IsoIr109,
IsoIr110,
IsoIr144,
IsoIr192,
Gb18030,
}Expand description
An enum type for all currently supported character sets.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
ISO-IR 6: the default character set.
ISO-IR 100 (ISO-8859-1): Right-hand part of the Latin alphabet no. 1, the Western Europe character set.
ISO-IR 101 (ISO-8859-2): Right-hand part of the Latin alphabet no. 2, the Central/Eastern Europe character set.
ISO-IR 109 (ISO-8859-3): Right-hand part of the Latin alphabet no. 3, the South Europe character set.
ISO-IR 110 (ISO-8859-4): Right-hand part of the Latin alphabet no. 4, the North Europe character set.
ISO-IR 144 (ISO-8859-5): The Latin/Cyrillic character set.
ISO-IR 192: The Unicode character set based on the UTF-8 encoding.
GB18030: The Simplified Chinese character set.
Implementations
Obtain the specific character set identified by the given code string.
*
* Supported code strings include the possible values
* in the respective DICOM element (0008, 0005).
*
* # Example
*
* * let character_set = SpecificCharacterSet::from_code("ISO_IR 100"); * assert_eq!(character_set, Some(SpecificCharacterSet::IsoIr100)); *
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Obtain the defined term (unique name) of the text encoding, which may be used as the value of a Specific Character Set (0008, 0005) element to refer to this codec. Read more
Decode the given byte buffer as a single string. The resulting string may contain backslash characters (’') to delimit individual values, and should be split later on if required. Read more
Auto Trait Implementations
impl RefUnwindSafe for SpecificCharacterSet
impl Send for SpecificCharacterSet
impl Sync for SpecificCharacterSet
impl Unpin for SpecificCharacterSet
impl UnwindSafe for SpecificCharacterSet
Blanket Implementations
Mutably borrows from an owned value. Read more