pub struct QaulId {}
Expand description

Qaul ID structure

Implementations

Convert a qaul ID to it’s small 16 Byte version

The small version is used in the BLE module. It only uses byte 7 to 24 of the qaul id

Create a search key prefix for a small vector

Convert a qaul user ID to it’s 8 Byte ID (q8id)

The 8 Byte user ID (q8id) is used for the routing protocol. It only uses byte 7 to 14 of the qaul id. Bytes 1-6 are always the same, as they declare the hash kind.

Converts the binary form of the qaul user ID to the 8 Byte ID (q8id)

Create a search key prefix for a small vector

Create the search range for the qaul ID from an q8id

This function returns a tuple with two qaul ID’s for the range selection. (lowest_id, highest_id)

The range can be used to search for the qaul ID in a BTreeMap.

A qaul ID has 38 bytes. {prefix}{q8id}{24 bytes}

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

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.