Struct asn1_cereal::tag::Tag [] [src]

pub struct Tag {
    pub class: Class,
    pub tagnum: TagNum,
    pub constructed: bool,
}

A struct containing the information from an ASN.1 tag, which represents an ASN.1 element.

Fields

The class flag in the ASN.1 tag.

The tag number in the ASN.1 tag.

The constructed flag in the ASN.1 tag, indicating whether this element contains another ASN.1 element.

Methods

impl Tag
[src]

Returns true when this element is a SEQUENCE (OF), or SET (OF).

Given an iterator over a byte stream, read and return a Tag struct.

Write this ASN.1 Tag struct to the given writer.

Trait Implementations

impl PartialEq for Tag
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Tag
[src]

Formats the value using the given formatter.

impl Clone for Tag
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Tag
[src]

impl Display for Tag
[src]

Formats the value using the given formatter.