Struct Der
pub struct Der<'a>(/* private field */);
DER-encoded data, either owned or borrowed
This wrapper type is used to represent DER-encoded data in a way that is agnostic to whether
the data is owned (by a Vec<u8>) or borrowed (by a &[u8]). Support for the owned
variant is only available when the alloc feature is enabled.
Implementations
impl<'a> Der<'a>
const fn from_slice(der: &'a [u8]) -> SelfA const constructor to create a
Derfrom a borrowed slice
Trait Implementations
impl AsRef<[u8]> for Der<'_>
fn as_ref(&self) -> &[u8]
impl Debug for Der<'_>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for Der<'_>
type Target = [u8];fn deref(&self) -> &Self::Target
impl From<Vec<u8>> for Der<'static>
fn from(vec: Vec<u8>) -> Self
impl<'a> Clone for Der<'a>
fn clone(&self) -> Self
impl<'a> Eq for Der<'a>
impl<'a> From<&'a [u8]> for Der<'a>
fn from(slice: &'a [u8]) -> Self
impl<'a> Hash for Der<'a>
fn hash<__H: Hasher>(&self, state: &mut __H)
impl<'a> PartialEq for Der<'a>
fn eq(&self, other: &Self) -> bool
impl<'a> StructuralPartialEq for Der<'a>
Auto Trait Implementations
impl<'a> Freeze for Der<'a>
impl<'a> RefUnwindSafe for Der<'a>
impl<'a> Send for Der<'a>
impl<'a> Sync for Der<'a>
impl<'a> Unpin for Der<'a>
impl<'a> UnsafeUnpin for Der<'a>
impl<'a> UnwindSafe for Der<'a>
Blanket Implementations
impl<P, T> Receiver for Der<'a>
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<T> Any for Der<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Der<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Der<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Der<'a>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Der<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Der<'a>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Der<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Der<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Der<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>