Module syntect::dumps[][src]

Expand description

Methods for dumping serializable structs to a compressed binary format, used to allow fast startup times

Currently syntect serializes SyntaxSet structs with dump_to_file into .packdump files and likewise ThemeSet structs to .themedump files.

You can use these methods to manage your own caching of compiled syntaxes and themes. And even your own serde::Serialize structures if you want to be consistent with your format.

Functions

Dumps an object to a binary array in the same format as dump_to_writer

Dumps an encodable object to a file at a given path, in the same format as dump_to_writer

Dumps an object to the given writer in a compressed binary format

Returns a fully loaded syntax set from a binary dump.

Returns a fully loaded syntax set from a binary dump file.

A helper function for decoding and decompressing data from a reader