Struct asn1_rs::TeletexString 
source · [−]pub struct TeletexString<'a> { /* private fields */ }Expand description
ASN.1 restricted character string type (TeletexString)
Implementations
Trait Implementations
sourceimpl<'a> AsRef<str> for TeletexString<'a>
 
impl<'a> AsRef<str> for TeletexString<'a>
sourceimpl<'a> CheckDerConstraints for TeletexString<'a>
 
impl<'a> CheckDerConstraints for TeletexString<'a>
fn check_constraints(any: &Any<'_>) -> Result<()>
sourceimpl<'a> Debug for TeletexString<'a>
 
impl<'a> Debug for TeletexString<'a>
sourceimpl<'a> From<&'a str> for TeletexString<'a>
 
impl<'a> From<&'a str> for TeletexString<'a>
sourceimpl From<String> for TeletexString<'_>
 
impl From<String> for TeletexString<'_>
sourceimpl<'a> PartialEq<TeletexString<'a>> for TeletexString<'a>
 
impl<'a> PartialEq<TeletexString<'a>> for TeletexString<'a>
sourcefn eq(&self, other: &TeletexString<'a>) -> bool
 
fn eq(&self, other: &TeletexString<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TeletexString<'a>) -> bool
 
fn ne(&self, other: &TeletexString<'a>) -> bool
This method tests for !=.
sourceimpl<'a> TestValidCharset for TeletexString<'a>
 
impl<'a> TestValidCharset for TeletexString<'a>
sourcefn test_valid_charset(i: &[u8]) -> Result<()>
 
fn test_valid_charset(i: &[u8]) -> Result<()>
Check character set for this object type.
sourceimpl ToDer for TeletexString<'_>
 
impl ToDer for TeletexString<'_>
sourcefn to_der_len(&self) -> Result<usize>
 
fn to_der_len(&self) -> Result<usize>
Get the length of the object, when encoded Read more
sourcefn write_der_header(&self, writer: &mut dyn Write) -> SerializeResult<usize>
 
fn write_der_header(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Attempt to write the DER header to this writer.
sourcefn write_der_content(&self, writer: &mut dyn Write) -> SerializeResult<usize>
 
fn write_der_content(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Attempt to write the DER content (all except header) to this writer.
sourcefn to_der_vec(&self) -> SerializeResult<Vec<u8>>
 
fn to_der_vec(&self) -> SerializeResult<Vec<u8>>
Write the DER encoded representation to a newly allocated Vec<u8>.
sourcefn to_der_vec_raw(&self) -> SerializeResult<Vec<u8>>
 
fn to_der_vec_raw(&self) -> SerializeResult<Vec<u8>>
Similar to using to_vec, but uses provided values without changes.
This can generate an invalid encoding for a DER object. Read more
sourcefn write_der(&self, writer: &mut dyn Write) -> SerializeResult<usize>
 
fn write_der(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Attempt to write the DER encoded representation (header and content) into this writer. Read more
sourcefn write_der_raw(&self, writer: &mut dyn Write) -> SerializeResult<usize>
 
fn write_der_raw(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Similar to using to_der, but uses provided values without changes.
This can generate an invalid encoding for a DER object. Read more
sourceimpl<'a, 'b> TryFrom<&'b Any<'a>> for TeletexString<'a>
 
impl<'a, 'b> TryFrom<&'b Any<'a>> for TeletexString<'a>
sourceimpl<'a> TryFrom<Any<'a>> for TeletexString<'a>
 
impl<'a> TryFrom<Any<'a>> for TeletexString<'a>
impl DerAutoDerive for TeletexString<'_>
impl<'a> StructuralPartialEq for TeletexString<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TeletexString<'a>
impl<'a> Send for TeletexString<'a>
impl<'a> Sync for TeletexString<'a>
impl<'a> Unpin for TeletexString<'a>
impl<'a> UnwindSafe for TeletexString<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more