Struct asn1::PrintableString
source · pub struct PrintableString<'a>(/* private fields */);
Expand description
Type for use with Parser.read_element
and Writer.write_element
for
handling ASN.1 PrintableString
. A PrintableString
contains an &str
with only valid characers.
Implementations§
Trait Implementations§
source§impl<'a> Clone for PrintableString<'a>
impl<'a> Clone for PrintableString<'a>
source§fn clone(&self) -> PrintableString<'a>
fn clone(&self) -> PrintableString<'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 moresource§impl<'a> Debug for PrintableString<'a>
impl<'a> Debug for PrintableString<'a>
source§impl<'a> PartialEq for PrintableString<'a>
impl<'a> PartialEq for PrintableString<'a>
source§fn eq(&self, other: &PrintableString<'a>) -> bool
fn eq(&self, other: &PrintableString<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> SimpleAsn1Readable<'a> for PrintableString<'a>
impl<'a> SimpleAsn1Readable<'a> for PrintableString<'a>
const TAG: Tag = _
fn parse_data(data: &'a [u8]) -> ParseResult<Self>
source§impl<'a> SimpleAsn1Writable for PrintableString<'a>
impl<'a> SimpleAsn1Writable for PrintableString<'a>
const TAG: Tag = _
fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
impl<'a> Eq for PrintableString<'a>
impl<'a> StructuralPartialEq for PrintableString<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PrintableString<'a>
impl<'a> Send for PrintableString<'a>
impl<'a> Sync for PrintableString<'a>
impl<'a> Unpin for PrintableString<'a>
impl<'a> UnwindSafe for PrintableString<'a>
Blanket Implementations§
source§impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
source§impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
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