Module iota_lib_rs::utils::converter [−][src]
Provides useful conversions between trinary types
Structs
BYTE_TO_TRITS_MAPPINGS |
Provides a byte to trits mapping |
TRYTE_TO_TRITS_MAPPINGS |
Provides a trytes to trits mapping |
Functions
bytes |
Converts a slice of trits into bytes |
bytes_with_offset |
Converts trits into bytes with an offset and size limit |
char_to_trits |
Converts a char into and array of trits |
get_trits |
Converts a provided slice of bytes into trits and stores them
in place into |
increment |
Increments a trit slice in place, only considering trits until index |
long_value |
Converts a slice of trits into a numeric value |
trits |
Converts a numeric representation of trytes into a vec of trits |
trits_from_string |
Converts a string into trits |
trits_from_string_with_length |
Converts a string into trits and ensures the output length |
trits_to_char |
Converts a slice of trits into a char |
trits_to_string |
Converts a slice of trits into a string |
trits_with_length |
Converts a numeric representation of trytes into a vec of trits with a guaranteed length |
trytes |
Converts a slice of trits into a tryte string |
value |
Converts a slice of trits into a numeric value |