Struct ed25519_dalek::pkcs8::spki::der::asn1::TeletexString
pub struct TeletexString { /* private fields */ }
Available on crate feature
pkcs8
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§
§impl TeletexString
impl TeletexString
Trait Implementations§
§impl AsRef<[u8]> for TeletexString
impl AsRef<[u8]> for TeletexString
§impl AsRef<str> for TeletexString
impl AsRef<str> for TeletexString
§impl Clone for TeletexString
impl Clone for TeletexString
§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 more§impl Debug for TeletexString
impl Debug for TeletexString
§impl<'__der> DecodeValue<'__der> for TeletexString
impl<'__der> DecodeValue<'__der> for TeletexString
§fn decode_value<R>(
reader: &mut R,
header: Header
) -> Result<TeletexString, Error>where
R: Reader<'__der>,
fn decode_value<R>(
reader: &mut R,
header: Header
) -> Result<TeletexString, Error>where
R: Reader<'__der>,
Attempt to decode this message using the provided
Reader
.§impl Deref for TeletexString
impl Deref for TeletexString
§impl Display for TeletexString
impl Display for TeletexString
§impl EncodeValue for TeletexString
impl EncodeValue for TeletexString
§impl<'a> From<&'a TeletexString> for AnyRef<'a>
impl<'a> From<&'a TeletexString> for AnyRef<'a>
§fn from(teletex_string: &'a TeletexString) -> AnyRef<'a>
fn from(teletex_string: &'a TeletexString) -> AnyRef<'a>
Converts to this type from the input type.
§impl<'a> From<TeletexStringRef<'a>> for TeletexString
impl<'a> From<TeletexStringRef<'a>> for TeletexString
§fn from(value: TeletexStringRef<'a>) -> TeletexString
fn from(value: TeletexStringRef<'a>) -> TeletexString
Converts to this type from the input type.
§impl Ord for TeletexString
impl Ord for TeletexString
§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
§fn owned_to_ref(&self) -> <TeletexString as OwnedToRef>::Borrowed<'_>
fn owned_to_ref(&self) -> <TeletexString as OwnedToRef>::Borrowed<'_>
Creates a new object referencing back to the self for storage
§impl PartialEq for TeletexString
impl PartialEq for TeletexString
§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 ==
.§impl PartialOrd for TeletexString
impl PartialOrd for TeletexString
§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§impl<'__der> TryFrom<&'__der Any> for TeletexString
Available on crate feature alloc
only.
impl<'__der> TryFrom<&'__der Any> for TeletexString
Available on crate feature
alloc
only.§impl<'__der> TryFrom<AnyRef<'__der>> for TeletexString
impl<'__der> TryFrom<AnyRef<'__der>> for TeletexString
§impl TryFrom<String> for TeletexString
impl TryFrom<String> for TeletexString
impl Eq for TeletexString
impl StructuralPartialEq for TeletexString
Auto Trait Implementations§
impl RefUnwindSafe for TeletexString
impl Send for TeletexString
impl Sync for TeletexString
impl Unpin for TeletexString
impl UnwindSafe for TeletexString
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
Mutably borrows from an owned value. Read more
§impl<'a, T> Choice<'a> for T
impl<'a, T> Choice<'a> for T
§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided
Tag
decodable as a variant of this CHOICE
?§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
§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.
§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
.
§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.