Struct der::asn1::PrintableStringRef
source · pub struct PrintableStringRef<'a> { /* private fields */ }
Expand description
ASN.1 PrintableString
type.
Supports a subset the ASCII character set (described below).
For UTF-8, use Utf8StringRef
instead.
For the full ASCII character set, use
Ia5StringRef
.
This is a zero-copy reference type which borrows from the input data.
Supported characters
The following ASCII characters/ranges are supported:
A..Z
a..z
0..9
- “
\
(
)
+
,
-
.
/
:
=
?
Implementations§
Trait Implementations§
source§impl<'a> AsRef<[u8]> for PrintableStringRef<'a>
impl<'a> AsRef<[u8]> for PrintableStringRef<'a>
source§impl<'a> AsRef<str> for PrintableStringRef<'a>
impl<'a> AsRef<str> for PrintableStringRef<'a>
source§impl<'a> Clone for PrintableStringRef<'a>
impl<'a> Clone for PrintableStringRef<'a>
source§fn clone(&self) -> PrintableStringRef<'a>
fn clone(&self) -> PrintableStringRef<'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 PrintableStringRef<'a>
impl<'a> Debug for PrintableStringRef<'a>
source§impl<'__der: 'a, 'a> DecodeValue<'__der> for PrintableStringRef<'a>
impl<'__der: 'a, 'a> DecodeValue<'__der> for PrintableStringRef<'a>
source§impl<'a> Deref for PrintableStringRef<'a>
impl<'a> Deref for PrintableStringRef<'a>
source§impl<'a> Display for PrintableStringRef<'a>
impl<'a> Display for PrintableStringRef<'a>
source§impl<'a> EncodeValue for PrintableStringRef<'a>
impl<'a> EncodeValue for PrintableStringRef<'a>
source§impl<'a> FixedTag for PrintableStringRef<'a>
impl<'a> FixedTag for PrintableStringRef<'a>
source§impl<'a> From<&PrintableStringRef<'a>> for PrintableStringRef<'a>
impl<'a> From<&PrintableStringRef<'a>> for PrintableStringRef<'a>
source§fn from(value: &PrintableStringRef<'a>) -> PrintableStringRef<'a>
fn from(value: &PrintableStringRef<'a>) -> PrintableStringRef<'a>
Converts to this type from the input type.
source§impl<'a> From<PrintableStringRef<'a>> for AnyRef<'a>
impl<'a> From<PrintableStringRef<'a>> for AnyRef<'a>
source§fn from(printable_string: PrintableStringRef<'a>) -> AnyRef<'a>
fn from(printable_string: PrintableStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<PrintableStringRef<'a>> for PrintableString
Available on crate feature alloc
only.
impl<'a> From<PrintableStringRef<'a>> for PrintableString
Available on crate feature
alloc
only.source§fn from(value: PrintableStringRef<'a>) -> PrintableString
fn from(value: PrintableStringRef<'a>) -> PrintableString
Converts to this type from the input type.
source§impl<'a> Ord for PrintableStringRef<'a>
impl<'a> Ord for PrintableStringRef<'a>
source§fn cmp(&self, other: &PrintableStringRef<'a>) -> Ordering
fn cmp(&self, other: &PrintableStringRef<'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<PrintableStringRef<'a>> for PrintableStringRef<'a>
impl<'a> PartialEq<PrintableStringRef<'a>> for PrintableStringRef<'a>
source§fn eq(&self, other: &PrintableStringRef<'a>) -> bool
fn eq(&self, other: &PrintableStringRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<PrintableStringRef<'a>> for PrintableStringRef<'a>
impl<'a> PartialOrd<PrintableStringRef<'a>> for PrintableStringRef<'a>
source§fn partial_cmp(&self, other: &PrintableStringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrintableStringRef<'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 moresource§impl<'a> RefToOwned<'a> for PrintableStringRef<'a>
Available on crate feature alloc
only.
impl<'a> RefToOwned<'a> for PrintableStringRef<'a>
Available on crate feature
alloc
only.§type Owned = PrintableString
type Owned = PrintableString
The resulting type after obtaining ownership.
source§fn ref_to_owned(&self) -> Self::Owned
fn ref_to_owned(&self) -> Self::Owned
Creates a new object taking ownership of the data
source§impl<'__der: 'a, 'a> TryFrom<&'__der Any> for PrintableStringRef<'a>
Available on crate feature alloc
only.
impl<'__der: 'a, 'a> TryFrom<&'__der Any> for PrintableStringRef<'a>
Available on crate feature
alloc
only.