[][src]Enum dicom_encoding::text::SpecificCharacterSet

#[non_exhaustive]pub enum SpecificCharacterSet {
    Default,
    IsoIr100,
    IsoIr101,
    IsoIr109,
    IsoIr110,
    IsoIr144,
    IsoIr192,
    GB18030,
}

An enum type for all currently supported character sets.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default

ISO-IR 6: the default character set.

IsoIr100

ISO-IR 100 (ISO-8859-1): Right-hand part of the Latin alphabet no. 1, the Western Europe character set.

IsoIr101

ISO-IR 101 (ISO-8859-2): Right-hand part of the Latin alphabet no. 2, the Central/Eastern Europe character set.

IsoIr109

ISO-IR 109 (ISO-8859-3): Right-hand part of the Latin alphabet no. 3, the South Europe character set.

IsoIr110

ISO-IR 110 (ISO-8859-4): Right-hand part of the Latin alphabet no. 4, the North Europe character set.

IsoIr144

ISO-IR 144 (ISO-8859-5): The Latin/Cyrillic character set.

IsoIr192

ISO-IR 192: The Unicode character set based on the UTF-8 encoding.

GB18030

GB18030: The Simplified Chinese character set.

Implementations

impl SpecificCharacterSet[src]

pub fn from_code(uid: &str) -> Option<Self>[src]

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));

pub fn codec(self) -> Option<DynamicTextCodec>[src]

Retrieve the respective text codec.

Trait Implementations

impl Clone for SpecificCharacterSet[src]

impl Copy for SpecificCharacterSet[src]

impl Debug for SpecificCharacterSet[src]

impl Default for SpecificCharacterSet[src]

impl Eq for SpecificCharacterSet[src]

impl Ord for SpecificCharacterSet[src]

impl PartialEq<SpecificCharacterSet> for SpecificCharacterSet[src]

impl PartialOrd<SpecificCharacterSet> for SpecificCharacterSet[src]

impl StructuralEq for SpecificCharacterSet[src]

impl StructuralPartialEq for SpecificCharacterSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.