Module sync

Module sync 

Source
Expand description

Synchronous reading / writing traits.

Traitsยง

DirStructure
The main trait. This is implemented for all directory structures by the derive macro.
DirStructureItem
Helper trait, implemented for all types that have a ReadFrom and WriteTo implementation.
FromRefForWriter
Trait to use when using the with_newtype attribute.
NewtypeToInner
Trait to use when using the with_newtype attribute.
ReadFrom
Trait for types / structures that can be read from disk, either from a file or a directory.
WriteTo
Trait for types / structures that can be written to disk. All types in the library that write to files first check that the parent directories exist, so implementations of this that create the whole directory are not necessary (unless used empty children directories, in which case no directories will really be created).