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
§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 PartialEq for Ia5String
impl PartialEq for Ia5String
source§impl PartialOrd for Ia5String
impl PartialOrd for Ia5String
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 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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.