[][src]Struct hcid::HcidEncodingConfig

pub struct HcidEncodingConfig {
    pub key_byte_count: usize,
    pub base_parity_byte_count: usize,
    pub cap_parity_byte_count: usize,
    pub prefix: Vec<u8>,
    pub prefix_cap: Vec<u8>,
    pub cap_segment_char_count: usize,
    pub encoded_char_count: usize,
}

represents an encoding configuration for hcid rendering and parsing

Fields

key_byte_count: usize

byte count of actuall key data that will be encoded

base_parity_byte_count: usize

parity bytes that will be encoded directly into the base32 string (appended after key)

cap_parity_byte_count: usize

parity bytes that will be encoded in the alpha capitalization (appended after base parity)

prefix: Vec<u8>

bytes to prefix before rendering to base32

prefix_cap: Vec<u8>

binary indication of the capitalization for prefix characters

cap_segment_char_count: usize

how many characters are in a capitalization parity segment

encoded_char_count: usize

how many characters long the fully rendered base32 string should be

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.