To-Binary: A Rust Crate For Conversion To A BinaryString
A Rust Library For Conversion To new type BinaryString
. BinaryString
is a singled-fielded, tuple struct that holds a BinaryString or BinaryWhitespaceString and is of the type String
.
It allows:
- Asserting Whether a Given Input Is a Binary String
- Asserting Number of Bits/Bytes
- Counting of Bits and Bytes
- Adding/Removing Whitespace Between Bytes
How To Use
Read Examples and Read The Documentation
Conversion To BinaryString
These examples show how you can convert from one type to the BinaryString
type.
use ;
Adding or Removing Whitespace From A BinaryString
This example shows how you can add whitespace between bytes or remove whitespace from a BinaryString
use ;
Using Binary Methods On BinaryString
There are many BinaryString
Methods That Can Be Used. This is a few of them that may be useful.
License
Licensed under either of
-
Apache License, Version 2.0
-
MIT license
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.