Crates.io | enc |
lib.rs | enc |
version | 0.7.0 |
source | src |
created_at | 2019-09-19 01:14:22.881248 |
updated_at | 2024-06-24 05:00:19.287645 |
description | This library aids in processing encoded data. |
homepage | https://github.com/nikdeapen/enc |
repository | https://github.com/nikdeapen/enc |
max_upload_size | |
id | 165843 |
size | 103,498 |
This library aids in processing encoded data.
Dependency:
enc = { version = "0.7.0", features = ["full"] }
There are no transitive-dependencies.
Features:
There are separate traits for encoding data and values.
The src/data
folder holds the traits: Encoder
, StringEncoder
, Decoder
and Validator
. These provide an
interface for encoders that operate on slices of data such as hex
& base-64
.
The src/value
folder holds the traits: EncodedLen
, EncodeToSlice
, EncodeToWrite
etc. These provide an interface
for values that know how to encode and decode themselves such as variable-length integers (var-int
) and can be
easily extended by custom types.