Struct der::asn1::VideotexStringRef
source · pub struct VideotexStringRef<'a> { /* private fields */ }
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§
Trait Implementations§
source§impl AsRef<[u8]> for VideotexStringRef<'_>
impl AsRef<[u8]> for VideotexStringRef<'_>
source§impl AsRef<str> for VideotexStringRef<'_>
impl AsRef<str> for VideotexStringRef<'_>
source§impl<'a> Clone for VideotexStringRef<'a>
impl<'a> Clone for VideotexStringRef<'a>
source§fn clone(&self) -> VideotexStringRef<'a>
fn clone(&self) -> VideotexStringRef<'a>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for VideotexStringRef<'a>
impl<'a> Debug for VideotexStringRef<'a>
source§impl<'a> DecodeValue<'a> for VideotexStringRef<'a>
impl<'a> DecodeValue<'a> for VideotexStringRef<'a>
source§impl<'a> Deref for VideotexStringRef<'a>
impl<'a> Deref for VideotexStringRef<'a>
source§impl<'a> Display for VideotexStringRef<'a>
impl<'a> Display for VideotexStringRef<'a>
source§impl<'a> EncodeValue for VideotexStringRef<'a>
impl<'a> EncodeValue for VideotexStringRef<'a>
source§impl<'a> From<&VideotexStringRef<'a>> for VideotexStringRef<'a>
impl<'a> From<&VideotexStringRef<'a>> for VideotexStringRef<'a>
source§fn from(value: &VideotexStringRef<'a>) -> VideotexStringRef<'a>
fn from(value: &VideotexStringRef<'a>) -> VideotexStringRef<'a>
Converts to this type from the input type.
source§impl<'a> From<VideotexStringRef<'a>> for &'a [u8]
impl<'a> From<VideotexStringRef<'a>> for &'a [u8]
source§fn from(printable_string: VideotexStringRef<'a>) -> &'a [u8]
fn from(printable_string: VideotexStringRef<'a>) -> &'a [u8]
Converts to this type from the input type.
source§impl<'a> From<VideotexStringRef<'a>> for AnyRef<'a>
impl<'a> From<VideotexStringRef<'a>> for AnyRef<'a>
source§fn from(printable_string: VideotexStringRef<'a>) -> AnyRef<'a>
fn from(printable_string: VideotexStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> Ord for VideotexStringRef<'a>
impl<'a> Ord for VideotexStringRef<'a>
source§impl<'a> PartialEq for VideotexStringRef<'a>
impl<'a> PartialEq for VideotexStringRef<'a>
source§impl<'a> PartialOrd for VideotexStringRef<'a>
impl<'a> PartialOrd for VideotexStringRef<'a>
source§fn partial_cmp(&self, other: &VideotexStringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &VideotexStringRef<'a>) -> Option<Ordering>
source§impl<'a> TryFrom<AnyRef<'a>> for VideotexStringRef<'a>
impl<'a> TryFrom<AnyRef<'a>> for VideotexStringRef<'a>
impl<'a> Copy for VideotexStringRef<'a>
impl<'a> Eq for VideotexStringRef<'a>
impl<'a> StructuralPartialEq for VideotexStringRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for VideotexStringRef<'a>
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T> Choice<'a> for T
impl<'a, T> Choice<'a> for T
source§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided
Tag
decodable as a variant of this CHOICE
?§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 dyn Writer) -> Result<(), Error>
fn encode(&self, writer: &mut dyn 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]>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.
source§fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length>
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length>
Encode this message as ASN.1 DER, appending it to the provided
byte vector.