Crate prc

source ·

Re-exports

pub use hash40;
pub use prc_trait::Prc;

Modules

Structs

A list of params.
A list of key-value pairs of params. Acts essentially like a hash-map, but is presented in list form to preserve key order, as well as to handle rare cases where a key may be duplicated. Keys are hashed strings, represented by the Hash40 type.

Enums

The central data structure to param files and params. Similar to tree-like recursive data formats such as JSON.

Functions

Attempts to read a param file from the given filepath. Returns a ParamStruct if successful, otherwise an Error.
Attempts to read a param file from the given reader (requires Seek). The reader should be positioned at the header of the filetype. Returns a ParamStruct if successful, otherwise an Error.
Attempts to write a param file into the given filepath. Returns nothing if successful, otherwise an Error.
Attempts to write a param file into the given writer (requires Seek). Returns nothing if successful, otherwise an Error.

Derive Macros