pub struct BigEndianInteger<'a>(pub &'a [u8]);
Expand description

NB: This is not a full INTEGER implementation, needs the leading tag + length. We do it this way because the flexiber derive macro currently expects fields to be tagged.

Tuple Fields

0: &'a [u8]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Compute the length of this value in bytes when encoded as BER-TLV

Encode this value as BER-TLV using the provided Encoder.

Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Encode this message as BER-TLV, appending it to the provided heapless byte vector. Read more

Serialize this message as a byte vector.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.