[][src]Struct picky_asn1_der::Serializer

pub struct Serializer<'se> { /* fields omitted */ }

An ASN.1-DER serializer for serde

Methods

impl<'se> Serializer<'se>[src]

pub fn new_to_bytes(buf: &'se mut [u8]) -> Self[src]

Creates a new serializer that writes to buf

pub fn new_to_byte_buf(buf: &'se mut Vec<u8>) -> Self[src]

Creates a new serializer that writes to buf

pub fn new_to_writer(writer: impl Write + 'se) -> Self[src]

Creates a new serializer that writes to writer

Trait Implementations

impl<'a, 'se> SerializeMap for &'a mut Serializer<'se>[src]

type Ok = usize

Must match the Ok type of our Serializer.

type Error = Asn1DerError

Must match the Error type of our Serializer.

impl<'a, 'se> SerializeStructVariant for &'a mut Serializer<'se>[src]

type Ok = usize

Must match the Ok type of our Serializer.

type Error = Asn1DerError

Must match the Error type of our Serializer.

impl<'a, 'se> SerializeTupleVariant for &'a mut Serializer<'se>[src]

type Ok = usize

Must match the Ok type of our Serializer.

type Error = Asn1DerError

Must match the Error type of our Serializer.

impl<'a, 'se> Serializer for &'a mut Serializer<'se>[src]

type Ok = usize

The output type produced by this Serializer during successful serialization. Most serializers that produce text or binary output should set Ok = () and serialize into an [io::Write] or buffer contained within the Serializer instance. Serializers that build in-memory data structures may be simplified by using Ok to propagate the data structure around. Read more

type Error = Asn1DerError

The error type when some error occurs during serialization.

type SerializeSeq = Sequence<'a, 'se>

Type returned from [serialize_seq] for serializing the content of the sequence. Read more

type SerializeTuple = Sequence<'a, 'se>

Type returned from [serialize_tuple] for serializing the content of the tuple. Read more

type SerializeTupleStruct = Sequence<'a, 'se>

Type returned from [serialize_tuple_struct] for serializing the content of the tuple struct. Read more

type SerializeTupleVariant = Self

Type returned from [serialize_tuple_variant] for serializing the content of the tuple variant. Read more

type SerializeMap = Self

Type returned from [serialize_map] for serializing the content of the map. Read more

type SerializeStruct = Sequence<'a, 'se>

Type returned from [serialize_struct] for serializing the content of the struct. Read more

type SerializeStructVariant = Self

Type returned from [serialize_struct_variant] for serializing the content of the struct variant. Read more

Auto Trait Implementations

impl<'se> !RefUnwindSafe for Serializer<'se>

impl<'se> !Send for Serializer<'se>

impl<'se> !Sync for Serializer<'se>

impl<'se> Unpin for Serializer<'se>

impl<'se> !UnwindSafe for Serializer<'se>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.