Function qsym2::io::write_qsym2_yaml

source ·
pub fn write_qsym2_yaml<T, P: AsRef<Path>>(
    name: P,
    value: &T,
) -> Result<(), Error>
where T: Serialize,
Expand description

Serialises a structure and writes into a QSym2 configuration YAML file.

§Arguments

  • name - The name of the YAML file to be written (without extensions). The resulting file will have the .yml extension.

§Returns

A Result indicating if the serialisation and writing processes have been successful.