Struct der::asn1::Ia5StringRef
source · 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 AsRef<[u8]> for Ia5StringRef<'_>
impl AsRef<[u8]> for Ia5StringRef<'_>
source§impl AsRef<str> for Ia5StringRef<'_>
impl AsRef<str> for Ia5StringRef<'_>
source§impl<'a> Clone for Ia5StringRef<'a>
impl<'a> Clone for Ia5StringRef<'a>
source§fn clone(&self) -> Ia5StringRef<'a>
fn clone(&self) -> Ia5StringRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for Ia5StringRef<'a>
impl<'a> Debug for Ia5StringRef<'a>
source§impl<'a> DecodeValue<'a> for Ia5StringRef<'a>
impl<'a> DecodeValue<'a> 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 EncodeValue for Ia5StringRef<'_>
impl EncodeValue for Ia5StringRef<'_>
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>
Converts to this type from the input type.
source§impl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
impl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
source§fn from(printable_string: Ia5StringRef<'a>) -> AnyRef<'a>
fn from(printable_string: Ia5StringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
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,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<Ia5StringRef<'a>> for Ia5StringRef<'a>
impl<'a> PartialEq<Ia5StringRef<'a>> for Ia5StringRef<'a>
source§fn eq(&self, other: &Ia5StringRef<'a>) -> bool
fn eq(&self, other: &Ia5StringRef<'a>) -> bool
source§impl<'a> PartialOrd<Ia5StringRef<'a>> for Ia5StringRef<'a>
impl<'a> PartialOrd<Ia5StringRef<'a>> for Ia5StringRef<'a>
source§fn partial_cmp(&self, other: &Ia5StringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Ia5StringRef<'a>) -> 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 more