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 characters.
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 duplicate 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> Hash for PrintableString<'a>
impl<'a> Hash for PrintableString<'a>
Source§impl<'a> PartialEq for PrintableString<'a>
impl<'a> PartialEq for PrintableString<'a>
Source§impl<'a> SimpleAsn1Readable<'a> for PrintableString<'a>
impl<'a> SimpleAsn1Readable<'a> for PrintableString<'a>
Source§fn parse_data(data: &'a [u8]) -> ParseResult<Self>
fn parse_data(data: &'a [u8]) -> ParseResult<Self>
Parse the value from the given data bytes. Read more
Source§impl SimpleAsn1Writable for PrintableString<'_>
impl SimpleAsn1Writable for PrintableString<'_>
Source§type Error = WriteError
type Error = WriteError
The error type returned by write operations.
Source§fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
Write the value’s data to the given buffer. Read more
impl<'a> Eq for PrintableString<'a>
impl<'a> StructuralPartialEq for PrintableString<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrintableString<'a>
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> UnsafeUnpin 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