pub struct Ia5StringRef<'a> { /* 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 Utf8StringRef
.
This is a zero-copy reference type which borrows from the input data.
Implementations§
Trait Implementations§
Source§impl<'a> AsRef<[u8]> for Ia5StringRef<'a>
impl<'a> AsRef<[u8]> for Ia5StringRef<'a>
Source§impl<'a> AsRef<str> for Ia5StringRef<'a>
impl<'a> AsRef<str> for Ia5StringRef<'a>
Source§impl<'a> Clone for Ia5StringRef<'a>
impl<'a> Clone for Ia5StringRef<'a>
Source§fn clone(&self) -> Ia5StringRef<'a>
fn clone(&self) -> Ia5StringRef<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for Ia5StringRef<'a>
impl<'a> Debug for Ia5StringRef<'a>
Source§impl<'__der: 'a, 'a> DecodeValue<'__der> for Ia5StringRef<'a>
impl<'__der: 'a, 'a> DecodeValue<'__der> for Ia5StringRef<'a>
Source§impl<'a> Deref for Ia5StringRef<'a>
impl<'a> Deref for Ia5StringRef<'a>
Source§impl<'a> Display for Ia5StringRef<'a>
impl<'a> Display for Ia5StringRef<'a>
Source§impl<'a> EncodeValue for Ia5StringRef<'a>
impl<'a> EncodeValue for Ia5StringRef<'a>
Source§impl<'a> From<&Ia5StringRef<'a>> for Ia5StringRef<'a>
impl<'a> From<&Ia5StringRef<'a>> for Ia5StringRef<'a>
Source§fn from(value: &Ia5StringRef<'a>) -> Ia5StringRef<'a>
fn from(value: &Ia5StringRef<'a>) -> Ia5StringRef<'a>
Source§impl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
impl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
Source§fn from(internationalized_string: Ia5StringRef<'a>) -> AnyRef<'a>
fn from(internationalized_string: Ia5StringRef<'a>) -> AnyRef<'a>
Source§impl<'a> From<Ia5StringRef<'a>> for Ia5String
Available on crate feature alloc
only.
impl<'a> From<Ia5StringRef<'a>> for Ia5String
alloc
only.Source§fn from(international_string: Ia5StringRef<'a>) -> Ia5String
fn from(international_string: Ia5StringRef<'a>) -> Ia5String
Source§impl<'a> Ord for Ia5StringRef<'a>
impl<'a> Ord for Ia5StringRef<'a>
Source§fn cmp(&self, other: &Ia5StringRef<'a>) -> Ordering
fn cmp(&self, other: &Ia5StringRef<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<'a> PartialEq for Ia5StringRef<'a>
impl<'a> PartialEq for Ia5StringRef<'a>
Source§impl<'a> PartialOrd for Ia5StringRef<'a>
impl<'a> PartialOrd for Ia5StringRef<'a>
Source§impl<'a> RefToOwned<'a> for Ia5StringRef<'a>
Available on crate feature alloc
only.
impl<'a> RefToOwned<'a> for Ia5StringRef<'a>
alloc
only.Source§impl<'__der: 'a, 'a> TryFrom<&'__der Any> for Ia5StringRef<'a>
Available on crate feature alloc
only.
impl<'__der: 'a, 'a> TryFrom<&'__der Any> for Ia5StringRef<'a>
alloc
only.Source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for Ia5StringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for Ia5StringRef<'a>
impl<'a> Copy for Ia5StringRef<'a>
impl<'a> Eq for Ia5StringRef<'a>
impl<'a> StructuralPartialEq for Ia5StringRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ia5StringRef<'a>
impl<'a> RefUnwindSafe for Ia5StringRef<'a>
impl<'a> Send for Ia5StringRef<'a>
impl<'a> Sync for Ia5StringRef<'a>
impl<'a> Unpin for Ia5StringRef<'a>
impl<'a> UnwindSafe for Ia5StringRef<'a>
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
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,
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]>
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes