Struct der::SetOfRef [−][src]
ASN.1 SET OF
backed by a byte slice containing serialized DER.
Implementations
impl<'a, T> SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
pub fn new(slice: &'a [u8]) -> Result<Self>
[src]
Create a new SetOfRef
from a slice.
pub fn as_bytes(&self) -> &'a [u8]
[src]
Borrow the inner byte sequence.
Trait Implementations
impl<'a, T> AsRef<[u8]> for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T: Clone> Clone for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T: Copy> Copy for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T: Debug> Debug for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T> Encodable for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
fn encoded_len(&self) -> Result<Length>
[src]
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>
[src]
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>
[src]
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length>
[src]
fn to_vec(&self) -> Result<Vec<u8>>
[src]
impl<'a, T: Eq> Eq for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T> From<SetOfRef<'a, T>> for Any<'a> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T: PartialEq> PartialEq<SetOfRef<'a, T>> for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
fn eq(&self, other: &SetOfRef<'a, T>) -> bool
[src]
fn ne(&self, other: &SetOfRef<'a, T>) -> bool
[src]
impl<'a, 'b, T> SetOf<'a, 'b, T> for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
type Iter = SetOfRefIter<'a, T>
Iterator over the elements of the set. Read more
fn elements(&'b self) -> Self::Iter
[src]
impl<'a, T> StructuralEq for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T> StructuralPartialEq for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T> Tagged for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
impl<'a, T> TryFrom<Any<'a>> for SetOfRef<'a, T> where
T: Clone + Decodable<'a> + Encodable + Ord,
[src]
T: Clone + Decodable<'a> + Encodable + Ord,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for SetOfRef<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for SetOfRef<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for SetOfRef<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for SetOfRef<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for SetOfRef<'a, T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,