#[non_exhaustive]pub enum Encoding {
Utf8,
Printable,
Ia5,
Visible,
Numeric,
Teletex,
Bmp,
Universal,
Other,
}Expand description
Which string encoding a value was written in, where it is a string at all.
Variants (Non-exhaustive)§
This enum is marked as 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.
Utf8
UTF8String.
Printable
PrintableString, a restricted set of ASCII.
Ia5
IA5String, ASCII.
Visible
VisibleString, printable ASCII.
Numeric
NumericString, digits and spaces.
Teletex
TeletexString, from before the others, and read here as an
approximation.
Bmp
BMPString, sixteen bits a character.
Universal
UniversalString, thirty-two bits a character.
Other
Not a string type this crate reads as text.
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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