Expand description

Multi-version/Multi-format support for Transmog.

transmog-versions forbids unsafe code crate version Documentation for main branch

This crate is early in development and experimental. A low-level API has been designed and is demonstrated in these examples:

A high-level procedural macro is being designed to wrap the low-level API.

Re-exports

  • pub use transmog;

Structs

Enums

  • An error from transmog-versions.

Traits

Functions

  • Decode a payload that may or may not contain a version header. If no header is found, callback is invoked with 0. If a header is found, the parsed version number is passed to callback.
  • Decode a payload that may or may not contain a version header. If no header is found, the result is (0, data). If a header is found, the parsed version number is returned along with a slice reference containing the previously-wrapped data.
  • Wrap data with a version header for versioned, if needed.
  • Write a version header for versioned, if needed, to write.