pub struct GeneralStringRef<'a> { /* private fields */ }Expand description
This is currently &[u8] internally, as GeneralString is not fully implemented yet
Implementations§
Trait Implementations§
Source§impl<'a> Clone for GeneralStringRef<'a>
impl<'a> Clone for GeneralStringRef<'a>
Source§fn clone(&self) -> GeneralStringRef<'a>
fn clone(&self) -> GeneralStringRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeneralStringRef<'a>
impl<'a> Debug for GeneralStringRef<'a>
Source§impl<'a> DecodeValue<'a> for GeneralStringRef<'a>
impl<'a> DecodeValue<'a> for GeneralStringRef<'a>
Source§impl EncodeValue for GeneralStringRef<'_>
impl EncodeValue for GeneralStringRef<'_>
Source§impl<'a> PartialEq for GeneralStringRef<'a>
impl<'a> PartialEq for GeneralStringRef<'a>
Source§fn eq(&self, other: &GeneralStringRef<'a>) -> bool
fn eq(&self, other: &GeneralStringRef<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for GeneralStringRef<'a>
impl<'a> Eq for GeneralStringRef<'a>
impl<'a> StructuralPartialEq for GeneralStringRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for GeneralStringRef<'a>
impl<'a> RefUnwindSafe for GeneralStringRef<'a>
impl<'a> Send for GeneralStringRef<'a>
impl<'a> Sync for GeneralStringRef<'a>
impl<'a> Unpin for GeneralStringRef<'a>
impl<'a> UnsafeUnpin for GeneralStringRef<'a>
impl<'a> UnwindSafe for GeneralStringRef<'a>
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
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 TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool = const CONSTRUCTED: bool = T::TAG.is_constructed();
const CONSTRUCTED: bool = const CONSTRUCTED: bool = T::TAG.is_constructed();
ASN.1 constructed bit