Null

Type Alias Null 

Source
pub type Null = ();
Expand description

The ASN.1 NULL type, for use with Parser.read_element and Writer.write_element.

Trait Implementations§

Source§

impl SimpleAsn1Readable<'_> for Null

Source§

const TAG: Tag

The ASN.1 tag that this type expects when parsing.
Source§

fn parse_data(data: &[u8]) -> ParseResult<Null>

Parse the value from the given data bytes. Read more
Source§

impl SimpleAsn1Writable for Null

Source§

const TAG: Tag

The ASN.1 tag that this type uses when writing.
Source§

fn write_data(&self, _dest: &mut WriteBuf) -> WriteResult

Write the value’s data to the given buffer. Read more
Source§

fn data_length(&self) -> Option<usize>

Get the length of the data content (without tag and length bytes) if it can be calculated efficiently. Read more