capability-skeleton 0.1.0

A Rust library for managing and building complex hierarchical tree structures such as skill trees. Supports serialization, error handling, and deep tree metrics.
Documentation
// ---------------- [ File: capability-skeleton/src/errors.rs ]
crate::ix!();

error_tree! {
    /// Errors that may occur while building/reading/writing a Skeleton.
    pub enum SkeletonError {
        /// File I/O error reading/writing TOML
        IoError(std::io::Error),

        /// TOML parse/serialize error
        TomlError(toml::de::Error),
        TomlWriteError(toml::ser::Error),

        /// A structural error, e.g. referencing an out-of-range ID.
        InvalidStructure,

        /// Depth=0 or other fundamental nonsense
        ImpossibleState,

        NodeBuildError(derive_builder::UninitializedFieldError),

        MissingName,
    }
}