use-annotation 0.1.0

Primitive annotation vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    25 out of 25 items documented1 out of 24 items with examples
  • Size
  • Source code size: 10.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 658.06 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-bioinformatics
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-annotation

Primitive annotation vocabulary.

use-annotation stores generic string annotations in deterministic key order. It does not perform ontology lookup, parse GFF/GTF, connect to databases, or infer biological meaning.

use use_annotation::{Annotation, AnnotationKey, AnnotationSet, AnnotationValue};

let mut annotations = AnnotationSet::new();
annotations.insert(Annotation::new(
    AnnotationKey::new("source").unwrap(),
    AnnotationValue::new("manual"),
));

assert_eq!(annotations.get("source").unwrap().as_str(), "manual");