Dogma.rs
Provides the Named, MaybeNamed, Labeled, MaybeLabeled, Collection,
and CollectionMut traits for Rust.
✨ Features
- Supports opting out of any feature using comprehensive feature flags.
- Adheres to the Rust API Guidelines in its naming conventions.
- 100% free and unencumbered public domain software.
🛠️ Prerequisites
- Rust 1.70+
⬇️ Installation
Installation via Cargo
Installation in Cargo.toml (with all features enabled)
[]
= "0.1"
Installation in Cargo.toml (with only specific features enabled)
[]
= { = "0.1", = false, = ["traits"] }
👉 Examples
Importing the library
use *;
Using the Named trait
use Named;
use Cow;
Using the MaybeNamed trait
use MaybeNamed;
use Cow;
📚 Reference
Traits
Integrations
| Crate (Feature) | Version | Usage | Summary |
|---|---|---|---|
clap] ("clap") |
4.5 | Derives clap::builder::TypedValueParser |
|
miette ("miette") |
7.6 | Enhances dogma::{IriError, UriError} |
|
serde ("serde") |
1 | Derives serde::{Serialize, Deserialize} |
|
👨💻 Development