Type Alias BitStr

Source
pub type BitStr = BitSlice<u8, Msb0>;
Expand description

A reference to a BIT STRING type.

Aliased Type§

struct BitStr { /* private fields */ }

Trait Implementations§

Source§

impl AsnType for BitStr

Source§

const TAG: Tag = Tag::BIT_STRING

The associated tag for the type. Read more
Source§

const TAG_TREE: TagTree = _

The root of this type’s tree of tag’s if it a CHOICE type, otherwise its Leaf that points Self::TAG.
Source§

const CONSTRAINTS: Constraints<'static> = Constraints::NONE

Source§

const IDENTIFIER: Option<&'static str> = None

Identifier of an ASN.1 type as specified in the original specification if not identical with the identifier of Self
Source§

impl Encode for BitStr

Source§

fn encode_with_tag_and_constraints<E: Encoder>( &self, encoder: &mut E, tag: Tag, constraints: Constraints<'_>, ) -> Result<(), E::Error>

Source§

fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>

Encodes self’s data into the given Encoder. Read more
Source§

fn encode_with_tag<E: Encoder>( &self, encoder: &mut E, tag: Tag, ) -> Result<(), E::Error>

Encode this value with tag into the given Encoder. Read more
Source§

fn encode_with_constraints<E: Encoder>( &self, encoder: &mut E, constraints: Constraints<'_>, ) -> Result<(), E::Error>