bytecon

Crates.iobytecon
lib.rsbytecon
version0.1.5
sourcesrc
created_at2024-11-06 22:47:58.922971
updated_at2024-11-11 01:53:24.88543
descriptionA trait for easily converting to-and-from an array of bytes.
homepage
repositoryhttps://github.com/AustinHellerRepo/bytecon
max_upload_size
id1439271
size48,075
(AustinHellerRepo)

documentation

README

bytecon

Allows for the convenient conversion of types from and to arrays of bytes.

Features

  • Default
    • Usage of the ByteCon trait allows for appending and extracting bytes from a byte array. This is very useful for interacting with a byte stream.
  • "burn"
    • Contains implementations for the burn crate.
      • Excludes: DType
  • "burn_dtype"
    • Contains the specific implementation for the burn crate's DType type since it can conflict with the "bincode" feature.
    • Only use this feature if you are NOT using "bincode".
  • "tokio"
    • Contains implementations for the tokio crate.
      • TlsStream<T: AsyncWrite + AsyncRead + Unpin>
      • Sender<Vec<u8>>
      • Receiver<Vec<u8>>
  • "bincode"
    • Contains implementations for the bincode crate.
    • This feature conflicts with the "burn_dtype" feature.

Coming soon

  • Additional implementations for other common crates
    • Feel free to add issues for your favorite crates
Commit count: 14

cargo fmt