pub struct Ia5String { /* private fields */ }
Available on crate feature
pkcs8
only.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§
§impl<'__der> DecodeValue<'__der> for Ia5String
impl<'__der> DecodeValue<'__der> for Ia5String
§impl EncodeValue for Ia5String
impl EncodeValue for Ia5String
§impl<'a> From<Ia5StringRef<'a>> for Ia5String
impl<'a> From<Ia5StringRef<'a>> for Ia5String
§fn from(international_string: Ia5StringRef<'a>) -> Ia5String
fn from(international_string: Ia5StringRef<'a>) -> Ia5String
Converts to this type from the input type.
§impl Ord for Ia5String
impl Ord for Ia5String
§impl OwnedToRef for Ia5String
impl OwnedToRef for Ia5String
§type Borrowed<'a> = Ia5StringRef<'a>
type Borrowed<'a> = Ia5StringRef<'a>
The resulting type referencing back to Self
§fn owned_to_ref(&self) -> <Ia5String as OwnedToRef>::Borrowed<'_>
fn owned_to_ref(&self) -> <Ia5String as OwnedToRef>::Borrowed<'_>
Creates a new object referencing back to the self for storage
§impl PartialOrd for Ia5String
impl PartialOrd for Ia5String
§fn partial_cmp(&self, other: &Ia5String) -> Option<Ordering>
fn partial_cmp(&self, other: &Ia5String) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Ia5String
impl StructuralPartialEq for Ia5String
Auto Trait Implementations§
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
§impl<'a, T> Choice<'a> for T
impl<'a, T> Choice<'a> for T
§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided
Tag
decodable as a variant of this CHOICE
?§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
§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.
§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
.
§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.