Struct ed25519_dalek::pkcs8::spki::der::asn1::VideotexStringRef
pub struct VideotexStringRef<'a> { /* private fields */ }
Available on crate feature
pkcs8
only.Expand description
ASN.1 VideotexString
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
For the practical purposes VideotexString is treated as IA5string, disallowing non-ASCII chars.
Implementations§
§impl<'a> VideotexStringRef<'a>
impl<'a> VideotexStringRef<'a>
Trait Implementations§
§impl<'a> AsRef<[u8]> for VideotexStringRef<'a>
impl<'a> AsRef<[u8]> for VideotexStringRef<'a>
§impl<'a> AsRef<str> for VideotexStringRef<'a>
impl<'a> AsRef<str> for VideotexStringRef<'a>
§impl<'a> Clone for VideotexStringRef<'a>
impl<'a> Clone for VideotexStringRef<'a>
§fn clone(&self) -> VideotexStringRef<'a>
fn clone(&self) -> VideotexStringRef<'a>
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<'a> Debug for VideotexStringRef<'a>
impl<'a> Debug for VideotexStringRef<'a>
§impl<'__der, 'a> DecodeValue<'__der> for VideotexStringRef<'a>where
'__der: 'a,
impl<'__der, 'a> DecodeValue<'__der> for VideotexStringRef<'a>where
'__der: 'a,
§fn decode_value<R>(
reader: &mut R,
header: Header
) -> Result<VideotexStringRef<'a>, Error>where
R: Reader<'__der>,
fn decode_value<R>(
reader: &mut R,
header: Header
) -> Result<VideotexStringRef<'a>, Error>where
R: Reader<'__der>,
Attempt to decode this message using the provided
Reader
.§impl<'a> Deref for VideotexStringRef<'a>
impl<'a> Deref for VideotexStringRef<'a>
§impl<'a> Display for VideotexStringRef<'a>
impl<'a> Display for VideotexStringRef<'a>
§impl<'a> EncodeValue for VideotexStringRef<'a>
impl<'a> EncodeValue for VideotexStringRef<'a>
§impl<'a> From<&VideotexStringRef<'a>> for VideotexStringRef<'a>
impl<'a> From<&VideotexStringRef<'a>> for VideotexStringRef<'a>
§fn from(value: &VideotexStringRef<'a>) -> VideotexStringRef<'a>
fn from(value: &VideotexStringRef<'a>) -> VideotexStringRef<'a>
Converts to this type from the input type.
§impl<'a> From<VideotexStringRef<'a>> for &'a [u8]
impl<'a> From<VideotexStringRef<'a>> for &'a [u8]
§fn from(printable_string: VideotexStringRef<'a>) -> &'a [u8] ⓘ
fn from(printable_string: VideotexStringRef<'a>) -> &'a [u8] ⓘ
Converts to this type from the input type.
§impl<'a> From<VideotexStringRef<'a>> for AnyRef<'a>
impl<'a> From<VideotexStringRef<'a>> for AnyRef<'a>
§fn from(printable_string: VideotexStringRef<'a>) -> AnyRef<'a>
fn from(printable_string: VideotexStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
§impl<'a> Ord for VideotexStringRef<'a>
impl<'a> Ord for VideotexStringRef<'a>
§fn cmp(&self, other: &VideotexStringRef<'a>) -> Ordering
fn cmp(&self, other: &VideotexStringRef<'a>) -> 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
§impl<'a> PartialEq for VideotexStringRef<'a>
impl<'a> PartialEq for VideotexStringRef<'a>
§fn eq(&self, other: &VideotexStringRef<'a>) -> bool
fn eq(&self, other: &VideotexStringRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl<'a> PartialOrd for VideotexStringRef<'a>
impl<'a> PartialOrd for VideotexStringRef<'a>
§fn partial_cmp(&self, other: &VideotexStringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &VideotexStringRef<'a>) -> 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, 'a> TryFrom<&'__der Any> for VideotexStringRef<'a>where
'__der: 'a,
Available on crate feature alloc
only.
impl<'__der, 'a> TryFrom<&'__der Any> for VideotexStringRef<'a>where
'__der: 'a,
Available on crate feature
alloc
only.§impl<'__der, 'a> TryFrom<AnyRef<'__der>> for VideotexStringRef<'a>where
'__der: 'a,
impl<'__der, 'a> TryFrom<AnyRef<'__der>> for VideotexStringRef<'a>where
'__der: 'a,
impl<'a> Copy for VideotexStringRef<'a>
impl<'a> Eq for VideotexStringRef<'a>
impl<'a> StructuralPartialEq for VideotexStringRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for VideotexStringRef<'a>
impl<'a> Send for VideotexStringRef<'a>
impl<'a> Sync for VideotexStringRef<'a>
impl<'a> Unpin for VideotexStringRef<'a>
impl<'a> UnwindSafe for VideotexStringRef<'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
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.