pub struct SequenceOf {
pub inner: Vec<Box<dyn ASN1>>,
/* private fields */
}
Expand description
A sequence of is dynamically build using a callback factory
Fields§
§inner: Vec<Box<dyn ASN1>>
The inner vector of ASN1 node
Implementations§
Source§impl SequenceOf
impl SequenceOf
Trait Implementations§
Source§impl ASN1 for SequenceOf
impl ASN1 for SequenceOf
Source§fn write_asn1(&self, writer: DERWriter<'_>) -> RdpResult<()>
fn write_asn1(&self, writer: DERWriter<'_>) -> RdpResult<()>
Write an ASN1 sequenceof model using a DERWriter
§Example
let s = sequence_of![
8 as Integer,
9 as Integer
];
assert_eq!(to_der(&s), [48, 6, 2, 1, 8, 2, 1, 9]);
Auto Trait Implementations§
impl Freeze for SequenceOf
impl !RefUnwindSafe for SequenceOf
impl !Send for SequenceOf
impl !Sync for SequenceOf
impl Unpin for SequenceOf
impl !UnwindSafe for SequenceOf
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