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<Ia5StringRef<'a>> for Ia5String
impl<'a> From<Ia5StringRef<'a>> for Ia5String
Source§fn from(international_string: Ia5StringRef<'a>) -> Ia5String
fn from(international_string: Ia5StringRef<'a>) -> Ia5String
Converts to this type from the input type.
Source§impl Ord for Ia5String
impl Ord for Ia5String
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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
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 value to the provided byte slice, returning a sub-slice
containing the encoded message.