pub struct TeletexString { /* private fields */ }
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>
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
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,
Source§impl OwnedToRef for TeletexString
impl OwnedToRef for TeletexString
Source§type Borrowed<'a> = TeletexStringRef<'a>
type Borrowed<'a> = TeletexStringRef<'a>
Source§fn owned_to_ref(&self) -> Self::Borrowed<'_>
fn owned_to_ref(&self) -> Self::Borrowed<'_>
Source§impl PartialEq for TeletexString
impl PartialEq for TeletexString
Source§impl PartialOrd for TeletexString
impl PartialOrd for TeletexString
Source§impl<'__der> TryFrom<&'__der Any> for TeletexString
impl<'__der> TryFrom<&'__der Any> for TeletexString
Source§impl<'__der> TryFrom<AnyRef<'__der>> for TeletexString
impl<'__der> TryFrom<AnyRef<'__der>> for TeletexString
Source§impl TryFrom<String> for TeletexString
impl TryFrom<String> for TeletexString
impl Eq for TeletexString
impl StructuralPartialEq for TeletexString
Auto Trait Implementations§
impl Freeze for TeletexString
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§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.
Source§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
.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes