Struct der::asn1::PrintableStringRef
source · [−]pub struct PrintableStringRef<'a> { /* private fields */ }
Expand description
ASN.1 PrintableString
type.
Supports a subset the ASCII character set (desribed 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
sourceimpl<'a> PrintableStringRef<'a>
impl<'a> PrintableStringRef<'a>
Trait Implementations
sourceimpl AsRef<str> for PrintableStringRef<'_>
impl AsRef<str> for PrintableStringRef<'_>
sourceimpl<'a> Clone for PrintableStringRef<'a>
impl<'a> Clone for PrintableStringRef<'a>
sourcefn clone(&self) -> PrintableStringRef<'a>
fn clone(&self) -> PrintableStringRef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for PrintableStringRef<'a>
impl<'a> Debug for PrintableStringRef<'a>
sourceimpl<'a> DecodeValue<'a> for PrintableStringRef<'a>
impl<'a> DecodeValue<'a> for PrintableStringRef<'a>
sourceimpl<'a> Display for PrintableStringRef<'a>
impl<'a> Display for PrintableStringRef<'a>
sourceimpl<'a> EncodeValue for PrintableStringRef<'a>
impl<'a> EncodeValue for PrintableStringRef<'a>
sourceimpl<'a> From<&'_ PrintableStringRef<'a>> for PrintableStringRef<'a>
impl<'a> From<&'_ PrintableStringRef<'a>> for PrintableStringRef<'a>
sourcefn from(value: &PrintableStringRef<'a>) -> PrintableStringRef<'a>
fn from(value: &PrintableStringRef<'a>) -> PrintableStringRef<'a>
Converts to this type from the input type.
sourceimpl<'a> From<PrintableStringRef<'a>> for AnyRef<'a>
impl<'a> From<PrintableStringRef<'a>> for AnyRef<'a>
sourcefn from(printable_string: PrintableStringRef<'a>) -> AnyRef<'a>
fn from(printable_string: PrintableStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
sourceimpl<'a> Ord for PrintableStringRef<'a>
impl<'a> Ord for PrintableStringRef<'a>
sourceimpl<'a> PartialEq<PrintableStringRef<'a>> for PrintableStringRef<'a>
impl<'a> PartialEq<PrintableStringRef<'a>> for PrintableStringRef<'a>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PrintableStringRef<'a>) -> bool
fn ne(&self, other: &PrintableStringRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<PrintableStringRef<'a>> for PrintableStringRef<'a>
impl<'a> PartialOrd<PrintableStringRef<'a>> for PrintableStringRef<'a>
sourcefn partial_cmp(&self, other: &PrintableStringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrintableStringRef<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl<'a> TryFrom<AnyRef<'a>> for PrintableStringRef<'a>
impl<'a> TryFrom<AnyRef<'a>> for PrintableStringRef<'a>
impl<'a> Copy for PrintableStringRef<'a>
impl<'a> Eq for PrintableStringRef<'a>
impl<'a> StructuralEq for PrintableStringRef<'a>
impl<'a> StructuralPartialEq for PrintableStringRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PrintableStringRef<'a>
impl<'a> Send for PrintableStringRef<'a>
impl<'a> Sync for PrintableStringRef<'a>
impl<'a> Unpin for PrintableStringRef<'a>
impl<'a> UnwindSafe for PrintableStringRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more