Struct der::asn1::TeletexString
source · pub struct TeletexString { /* private fields */ }
Available on crate feature
alloc
only.Expand description
ASN.1 TeletexString
type.
Supports a subset the ASCII character set (described below).
For UTF-8, use Utf8StringRef
instead.
For the full ASCII character set, use
Ia5StringRef
.
Supported characters
The standard defines a complex character set allowed in this type. However, quoting the ASN.1 mailing list, “a sizable volume of software in the world treats TeletexString (T61String) as a simple 8-bit string with mostly Windows Latin 1 (superset of iso-8859-1) encoding”.
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for TeletexString
impl AsRef<[u8]> for TeletexString
source§impl AsRef<str> for TeletexString
impl AsRef<str> for TeletexString
source§impl Clone for TeletexString
impl Clone for TeletexString
source§fn clone(&self) -> TeletexString
fn clone(&self) -> TeletexString
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 Debug for TeletexString
impl Debug for TeletexString
source§impl<'__der> DecodeValue<'__der> for TeletexString
impl<'__der> DecodeValue<'__der> for TeletexString
source§impl Deref for TeletexString
impl Deref for TeletexString
source§impl Display for TeletexString
impl Display for TeletexString
source§impl EncodeValue for TeletexString
impl EncodeValue for TeletexString
source§impl<'a> From<&'a TeletexString> for AnyRef<'a>
impl<'a> From<&'a TeletexString> for AnyRef<'a>
source§fn from(teletex_string: &'a TeletexString) -> AnyRef<'a>
fn from(teletex_string: &'a TeletexString) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<TeletexStringRef<'a>> for TeletexString
impl<'a> From<TeletexStringRef<'a>> for TeletexString
source§fn from(value: TeletexStringRef<'a>) -> TeletexString
fn from(value: TeletexStringRef<'a>) -> TeletexString
Converts to this type from the input type.
source§impl Ord for TeletexString
impl Ord for TeletexString
source§fn cmp(&self, other: &TeletexString) -> Ordering
fn cmp(&self, other: &TeletexString) -> 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 OwnedToRef for TeletexString
impl OwnedToRef for TeletexString
§type Borrowed<'a> = TeletexStringRef<'a>
type Borrowed<'a> = TeletexStringRef<'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<TeletexString> for TeletexString
impl PartialEq<TeletexString> for TeletexString
source§fn eq(&self, other: &TeletexString) -> bool
fn eq(&self, other: &TeletexString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TeletexString> for TeletexString
impl PartialOrd<TeletexString> for TeletexString
source§fn partial_cmp(&self, other: &TeletexString) -> Option<Ordering>
fn partial_cmp(&self, other: &TeletexString) -> 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