Crate transformable

Source
Expand description

Transformable

Transform its representation between structured and bytes form.

github LoC Build codecov

docs.rs crates.io crates.io license

§Installation

[dependencies]
transformable = "0.2"
§License

transformable is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2023 Al Liu.

Modules§

utils
Utilities for encoding and decoding.

Enums§

AddrTransformError
The error type for errors that get returned when encoding or decoding fails.
BytesTransformError
The error type for errors that get returned when encoding or decoding fails.
DurationTransformError
Error returned by Duration when transforming.
InstantTransformErrorstd
Error returned by Instant when transforming.
IpAddrTransformError
The wire error type for IpAddr.
NumberTransformError
Error type for transformable numbers.
SocketAddrTransformError
The wire error type for SocketAddr.
StringTransformError
The error type for errors that get returned when encoding or decoding str based structs fails.
SystemTimeTransformErrorstd
Error returned by SystemTime when transforming.

Traits§

Decodable
The type can transform its representation from byte form to struct.
Encodable
The type can transform its representation to byte form.
Transformable
The type can transform its representation between structured and byte form.