This is trying to remove the num_bytes argument from usize/isize methods.

If num_bytes can be removed then a generic to_bytes and from_bytes
trait can be created that will help with serializing structures
and generic data.
This commit is contained in:
Jason Travis Smith
2016-01-02 14:54:03 -05:00
parent a3cc3a3515
commit 6a623932ed
4 changed files with 92 additions and 45 deletions

19
.gitignore vendored
View File

@ -1,2 +1,17 @@
target
Cargo.lock
# Ignore swap files from text editors.
*.swp
# Ignore compiled files.
*.o
*.so
*.rlib
*.dll
*.exe
# Ignore files/directories generated by Cargo.
/target/
# Remove Cargo.lock from gitignore if creating an executable,
# leave it for libraries.
# More information here: http://doc.crates.io/guide.html#cargotoml-vs-cargolock
#Cargo.lock