pub struct TeletexStringRef<'a> { /* private fields */ }
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
.
This is a zero-copy reference type which borrows from the input data.
§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<'a> AsRef<[u8]> for TeletexStringRef<'a>
impl<'a> AsRef<[u8]> for TeletexStringRef<'a>
Source§impl<'a> AsRef<str> for TeletexStringRef<'a>
impl<'a> AsRef<str> for TeletexStringRef<'a>
Source§impl<'a> Clone for TeletexStringRef<'a>
impl<'a> Clone for TeletexStringRef<'a>
Source§fn clone(&self) -> TeletexStringRef<'a>
fn clone(&self) -> TeletexStringRef<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for TeletexStringRef<'a>
impl<'a> Debug for TeletexStringRef<'a>
Source§impl<'__der: 'a, 'a> DecodeValue<'__der> for TeletexStringRef<'a>
impl<'__der: 'a, 'a> DecodeValue<'__der> for TeletexStringRef<'a>
Source§impl<'a> Deref for TeletexStringRef<'a>
impl<'a> Deref for TeletexStringRef<'a>
Source§impl<'a> Display for TeletexStringRef<'a>
impl<'a> Display for TeletexStringRef<'a>
Source§impl<'a> EncodeValue for TeletexStringRef<'a>
impl<'a> EncodeValue for TeletexStringRef<'a>
Source§impl<'a> FixedTag for TeletexStringRef<'a>
impl<'a> FixedTag for TeletexStringRef<'a>
Source§impl<'a> From<&TeletexStringRef<'a>> for TeletexStringRef<'a>
impl<'a> From<&TeletexStringRef<'a>> for TeletexStringRef<'a>
Source§fn from(value: &TeletexStringRef<'a>) -> TeletexStringRef<'a>
fn from(value: &TeletexStringRef<'a>) -> TeletexStringRef<'a>
Source§impl<'a> From<TeletexStringRef<'a>> for AnyRef<'a>
impl<'a> From<TeletexStringRef<'a>> for AnyRef<'a>
Source§fn from(teletex_string: TeletexStringRef<'a>) -> AnyRef<'a>
fn from(teletex_string: TeletexStringRef<'a>) -> AnyRef<'a>
Source§impl<'a> From<TeletexStringRef<'a>> for TeletexString
Available on crate feature alloc
only.
impl<'a> From<TeletexStringRef<'a>> for TeletexString
alloc
only.Source§fn from(value: TeletexStringRef<'a>) -> TeletexString
fn from(value: TeletexStringRef<'a>) -> TeletexString
Source§impl<'a> Ord for TeletexStringRef<'a>
impl<'a> Ord for TeletexStringRef<'a>
Source§fn cmp(&self, other: &TeletexStringRef<'a>) -> Ordering
fn cmp(&self, other: &TeletexStringRef<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<'a> PartialEq for TeletexStringRef<'a>
impl<'a> PartialEq for TeletexStringRef<'a>
Source§impl<'a> PartialOrd for TeletexStringRef<'a>
impl<'a> PartialOrd for TeletexStringRef<'a>
Source§impl<'a> RefToOwned<'a> for TeletexStringRef<'a>
Available on crate feature alloc
only.
impl<'a> RefToOwned<'a> for TeletexStringRef<'a>
alloc
only.Source§type Owned = TeletexString
type Owned = TeletexString
Source§fn ref_to_owned(&self) -> Self::Owned
fn ref_to_owned(&self) -> Self::Owned
Source§impl<'__der: 'a, 'a> TryFrom<&'__der Any> for TeletexStringRef<'a>
Available on crate feature alloc
only.
impl<'__der: 'a, 'a> TryFrom<&'__der Any> for TeletexStringRef<'a>
alloc
only.Source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for TeletexStringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for TeletexStringRef<'a>
impl<'a> Copy for TeletexStringRef<'a>
impl<'a> Eq for TeletexStringRef<'a>
impl<'a> StructuralPartialEq for TeletexStringRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TeletexStringRef<'a>
impl<'a> RefUnwindSafe for TeletexStringRef<'a>
impl<'a> Send for TeletexStringRef<'a>
impl<'a> Sync for TeletexStringRef<'a>
impl<'a> Unpin for TeletexStringRef<'a>
impl<'a> UnwindSafe for TeletexStringRef<'a>
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: 24 bytes