pub type FixedBitString<const N: usize> = BitArray<[u8; N], Msb0>;Expand description
A fixed length BIT STRING type.
Aliased Type§
struct FixedBitString<const N: usize> {
pub _ord: PhantomData<Msb0>,
pub data: [u8; N],
}Fields§
§_ord: PhantomData<Msb0>The ordering of bits within an A::Store element.
data: [u8; N]The wrapped data buffer.
Trait Implementations§
source§impl<const N: usize> AsnType for FixedBitString<N>
impl<const N: usize> AsnType for FixedBitString<N>
source§const TAG_TREE: TagTree = _
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
const CONSTRAINTS: Constraints<'static> = Constraints::NONE
The set of constraints for values of the given type.
source§const IDENTIFIER: Option<&'static str> = None
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
Selfsource§impl<const N: usize> Decode for FixedBitString<N>
impl<const N: usize> Decode for FixedBitString<N>
source§fn decode_with_tag_and_constraints<D: Decoder>(
decoder: &mut D,
tag: Tag,
constraints: Constraints<'_>,
) -> Result<Self, D::Error>
fn decode_with_tag_and_constraints<D: Decoder>( decoder: &mut D, tag: Tag, constraints: Constraints<'_>, ) -> Result<Self, D::Error>
Decode this value implicitly tagged with
tag from a given ASN.1
decoder with a set of constraints on what values of that type are allowed. Read moresource§fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, D::Error>
fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, D::Error>
Decode this value from a given ASN.1 decoder. Read more
source§fn decode_with_tag<D: Decoder>(
decoder: &mut D,
tag: Tag,
) -> Result<Self, D::Error>
fn decode_with_tag<D: Decoder>( decoder: &mut D, tag: Tag, ) -> Result<Self, D::Error>
Decode this value implicitly tagged with
tag from a given ASN.1 decoder. Read moresource§fn decode_with_constraints<D: Decoder>(
decoder: &mut D,
constraints: Constraints<'_>,
) -> Result<Self, D::Error>
fn decode_with_constraints<D: Decoder>( decoder: &mut D, constraints: Constraints<'_>, ) -> Result<Self, D::Error>
Decode this value from a given ASN.1 decoder with a set of constraints
on what values of that type are allowed. Read more
source§impl<const N: usize> Encode for FixedBitString<N>
impl<const N: usize> Encode for FixedBitString<N>
source§fn encode_with_tag_and_constraints<E: Encoder>(
&self,
encoder: &mut E,
tag: Tag,
constraints: Constraints<'_>,
) -> Result<(), E::Error>
fn encode_with_tag_and_constraints<E: Encoder>( &self, encoder: &mut E, tag: Tag, constraints: Constraints<'_>, ) -> Result<(), E::Error>
Encode this value with
tag into the given crate::Encoder with the
constraints the values this is allowed to encode into. Read moresource§fn encode_with_constraints<E: Encoder>(
&self,
encoder: &mut E,
constraints: Constraints<'_>,
) -> Result<(), E::Error>
fn encode_with_constraints<E: Encoder>( &self, encoder: &mut E, constraints: Constraints<'_>, ) -> Result<(), E::Error>
Encode this value into the given
crate::Encoder with the
constraints the values this is allowed to encode into. Read more