Trait KeySpecifierPattern

Source
pub trait KeySpecifierPattern {
    // Required methods
    fn new_any() -> Self
       where Self: Sized;
    fn arti_pattern(&self) -> Result<KeyPathPattern, Bug>;
}
Expand description

A pattern specifying some or all of a kind of key

Generally implemented on SomeKeySpecifierPattern by applying #[derive_deftly(KeySpecifier) to SomeKeySpecifier.

Required Methods§

Source

fn new_any() -> Self
where Self: Sized,

Obtain a pattern template that matches all keys of this type.

Source

fn arti_pattern(&self) -> Result<KeyPathPattern, Bug>

Get a KeyPathPattern that can match the ArtiPaths of some or all the keys of this type.

Implementors§