pub type ArchiveCategoryRule<'a> = CategoryRule<'a>;

Aliased Type§

enum ArchiveCategoryRule<'a> {
    Prefix(&'a str),
    Suffix(&'a str),
    Wrap(&'a str, &'a str),
}

Variants§

§

Prefix(&'a str)

Categories are signified by prefixing their names with the specified token.

§

Suffix(&'a str)

Categories are signified by appending their names with the specified token.

§

Wrap(&'a str, &'a str)

Categories are signified by wrapping their names between the specified start and end tokens.

Implementations§

source§

impl<'a> CategoryRule<'a>

source

pub fn is_category(&self, key: &str) -> bool

source

pub fn make_category(&self, key: &str, out_key: &mut CompactString)

Trait Implementations§

source§

impl<'a> Default for CategoryRule<'a>

source§

fn default() -> Self

Returns the “default value” for a type. Read more