Struct asn1_rs::GraphicString
source · pub struct GraphicString<'a> { /* private fields */ }
Expand description
ASN.1 restricted character string type (GraphicString
)
Implementations§
Trait Implementations§
source§impl<'a> AsRef<str> for GraphicString<'a>
impl<'a> AsRef<str> for GraphicString<'a>
source§impl<'a> CheckDerConstraints for GraphicString<'a>
impl<'a> CheckDerConstraints for GraphicString<'a>
source§impl<'a> Debug for GraphicString<'a>
impl<'a> Debug for GraphicString<'a>
source§impl<'a> From<&'a str> for GraphicString<'a>
impl<'a> From<&'a str> for GraphicString<'a>
source§impl From<String> for GraphicString<'_>
impl From<String> for GraphicString<'_>
source§impl<'a> PartialEq for GraphicString<'a>
impl<'a> PartialEq for GraphicString<'a>
source§fn eq(&self, other: &GraphicString<'a>) -> bool
fn eq(&self, other: &GraphicString<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TestValidCharset for GraphicString<'a>
impl<'a> TestValidCharset for GraphicString<'a>
source§impl ToDer for GraphicString<'_>
impl ToDer for GraphicString<'_>
source§fn to_der_len(&self) -> Result<usize>
fn to_der_len(&self) -> Result<usize>
Get the length of the object (including the header), when encoded
source§fn 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.
source§fn 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.
source§fn 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>
.source§fn 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.source§fn 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
source§fn 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.source§impl<'a, 'b> TryFrom<&'b Any<'a>> for GraphicString<'a>
impl<'a, 'b> TryFrom<&'b Any<'a>> for GraphicString<'a>
source§impl<'a> TryFrom<Any<'a>> for GraphicString<'a>
impl<'a> TryFrom<Any<'a>> for GraphicString<'a>
impl DerAutoDerive for GraphicString<'_>
impl<'a> Eq for GraphicString<'a>
impl<'a> StructuralPartialEq for GraphicString<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphicString<'a>
impl<'a> RefUnwindSafe for GraphicString<'a>
impl<'a> Send for GraphicString<'a>
impl<'a> Sync for GraphicString<'a>
impl<'a> Unpin for GraphicString<'a>
impl<'a> UnwindSafe for GraphicString<'a>
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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