Trait rasn::Encode [−][src]
A data type that can be encoded to a ASN.1 data format.
Required methods
fn encode_with_tag<E: Encoder>(
&self,
encoder: &mut E,
tag: Tag
) -> Result<(), E::Error>
[src]
&self,
encoder: &mut E,
tag: Tag
) -> Result<(), E::Error>
Encode this value implicitly tagged with tag
into the given Decoder
.
Provided methods
fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
Encodes self
’s data into the given Encoder
.
Note for implementors You typically do not need to implement this.
The default implementation will call Encode::encode_with_tag
with
your types associated AsnType::TAG
. You should only ever need to
implement this if you have a type that cannot be implicitly tagged,
such as a CHOICE
type.
Implementations on Foreign Types
impl<E: Encode> Encode for Option<E>
[src]
impl Encode for BTreeMap<Tag, Open>
[src]
Loading content...Implementors
impl Encode for &str
[src]
impl Encode for ()
[src]
impl Encode for Open
[src]
fn encode_with_tag<EN: Encoder>(
&self,
_: &mut EN,
_: Tag
) -> Result<(), EN::Error>
[src]
&self,
_: &mut EN,
_: Tag
) -> Result<(), EN::Error>