Function encode_binary_to_integer

Source
pub fn encode_binary_to_integer(data: &str) -> Result<String, Box<dyn Error>>
Expand description

Encodes a binary string to integer format.

ยงExamples

use nutek_encode_lib::encoder;
let encoded = encoder::encode_binary_to_integer("11111111").unwrap();
assert_eq!(encoded, "255");