Skip to main content

FacetTerm

Trait FacetTerm 

Source
pub trait FacetTerm:
    Copy
    + Eq
    + Sized
    + 'static {
    // Required methods
    fn all() -> &'static [Self];
    fn as_str(self) -> &'static str;
    fn from_term(s: &str) -> Option<Self>;
}
Expand description

A single facet term: the closed vocabulary of one axis, with its TOML spelling.

Required Methods§

Source

fn all() -> &'static [Self]

Every term, in declaration order (for ordinals, least-severe first).

Source

fn as_str(self) -> &'static str

The term’s canonical TOML spelling.

Source

fn from_term(s: &str) -> Option<Self>

Parse a term from its TOML spelling.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§