pub struct Ia5String { /* private fields */ }Expand description
ASN.1 IA5String type.
Supports the International Alphabet No. 5 (IA5) character encoding, i.e. the lower 128 characters of the ASCII alphabet. (Note: IA5 is now technically known as the International Reference Alphabet or IRA as specified in the ITU-T’s T.50 recommendation).
For UTF-8, use String.
Implementations§
Trait Implementations§
Source§impl<'__der> DecodeValue<'__der> for Ia5String
impl<'__der> DecodeValue<'__der> for Ia5String
Source§impl EncodeValue for Ia5String
impl EncodeValue for Ia5String
Source§impl<'a> From<&'a Ia5String> for Ia5StringRef<'a>
impl<'a> From<&'a Ia5String> for Ia5StringRef<'a>
Source§fn from(ia5_string: &'a Ia5String) -> Ia5StringRef<'a>
fn from(ia5_string: &'a Ia5String) -> Ia5StringRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<Ia5StringRef<'a>> for Ia5String
impl<'a> From<Ia5StringRef<'a>> for Ia5String
Source§fn from(ia5_string: Ia5StringRef<'a>) -> Ia5String
fn from(ia5_string: Ia5StringRef<'a>) -> Ia5String
Converts to this type from the input type.
Source§impl Ord for Ia5String
impl Ord for Ia5String
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl OwnedToRef for Ia5String
impl OwnedToRef for Ia5String
Source§type Borrowed<'a> = Ia5StringRef<'a>
type Borrowed<'a> = Ia5StringRef<'a>
The resulting type referencing back to Self
Source§fn owned_to_ref(&self) -> Self::Borrowed<'_>
fn owned_to_ref(&self) -> Self::Borrowed<'_>
Creates a new object referencing back to the self for storage
Source§impl PartialOrd for Ia5String
impl PartialOrd for Ia5String
impl Eq for Ia5String
impl StructuralPartialEq for Ia5String
Auto Trait Implementations§
impl Freeze for Ia5String
impl RefUnwindSafe for Ia5String
impl Send for Ia5String
impl Sync for Ia5String
impl Unpin for Ia5String
impl UnsafeUnpin for Ia5String
impl UnwindSafe for Ia5String
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool = const CONSTRUCTED: bool = T::TAG.is_constructed();
const CONSTRUCTED: bool = const CONSTRUCTED: bool = T::TAG.is_constructed();
ASN.1 constructed bit