File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use core::ops::RangeInclusive;
22
33use crate :: { Error , ErrorKind , Tag } ;
44
5- /// Trait on automatically derived by `BitString` macro.
5+ /// Trait automatically derived on structs, by the `BitString` macro.
66/// Used for checking if binary data fits into defined struct.
77///
88/// ```
@@ -31,7 +31,7 @@ pub trait AllowedLenBitString {
3131 /// Implementer must specify how many bits are allowed
3232 const ALLOWED_LEN_RANGE : RangeInclusive < u16 > ;
3333
34- /// Check the big length.
34+ /// Check the bit length.
3535 ///
3636 /// # Errors
3737 /// Returns an error if the bitstring is not in expected length range.
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ pub trait EncodeValue {
233233 /// encoded as ASN.1 DER.
234234 ///
235235 /// # Errors
236- /// Returns an error if the value length could not be computed.
236+ /// Returns an error if the value length could not be computed (e.g. overflow) .
237237 fn value_len ( & self ) -> Result < Length > ;
238238
239239 /// Encode value (sans [`Tag`]+[`Length`] header) as ASN.1 DER using the
Original file line number Diff line number Diff line change 5555//! - [`PrintableStringRef`]: ASN.1 `PrintableString` (ASCII subset).
5656//! - [`TeletexStringRef`]: ASN.1 `TeletexString`.
5757//! - [`VideotexStringRef`]: ASN.1 `VideotexString`.
58- //! - [`SequenceOf`]: ASN.1 `SEQUENCE OF`.
58+ //! - [`SequenceOf`] (requires `heapless` feature) : ASN.1 `SEQUENCE OF`.
5959//! - [`SetOf`] (requires `heapless` feature), [`SetOfVec`] (requires `alloc`): ASN.1 `SET OF`.
6060//! - [`UintRef`]: ASN.1 unsigned `INTEGER` with raw access to encoded bytes.
6161//! - [`UtcTime`]: ASN.1 `UTCTime`.
Original file line number Diff line number Diff line change 66//! issues related to these tests, run:
77//!
88//! ```text
9- //! $ cargo expand --test derive_heapless --all-features
9+ //! $ cargo expand --test derive_no_alloc --all-features
1010//! ```
1111
1212#![ cfg( feature = "derive" ) ]
You can’t perform that action at this time.
0 commit comments