Crate dewey_decimal

Crate dewey_decimal 

Source
Expand description

Simple wrapper around the Dewey Decimal Classification system

Provides functionality for fetching information about Dewey Decimal classes, along with methods for traversing the class hierarchy.

Classes are automatically generated from OpenLibrary, or generated from an included JSON file if unable.

§Usage

use dewey_decimal::{Dewey, Class};
 
fn main() {
    // Get the class representing "Computer science, knowledge & systems"
    let comp_sci = Class::get("00").unwrap();
 
    // Gets all children in this class
    let cs_classes = comp_sci.all_children()
}

§Features

dewey-decimal supports several serialization utilities, which can be activated with feature flags

FeatureDescription
serdeSupports serde serialization & deserialization on Class (enabled by default)
spectaSupports specta::Type on Class
schemarsSupports schemars::JsonSchema on Class
bevy_reflectSupports bevy_reflect::Reflect on Class

Re-exports§

pub use trie_rs;

Structs§

Class
Representation of a single Dewey Decimal class
Dewey
Stateless struct for getting Class instances