elipdotter::query::parse

Struct Options

source
pub struct Options { /* private fields */ }
Expand description

Options to parse. Here, you can add your own formatting rules, on top of the default rules.

Implementations§

source§

impl Options

source

pub fn new() -> Self

Crates a new, empty, set of options. The order of Self::insert matters a lot.

Self::populate_and_space should definitely be last.

See crate::literal_rule! for an example.

source

pub fn insert<R: 'static + Rule>(self, rule: R) -> Self

source

pub fn populate_literals(self) -> Self

source

pub fn populate_not(self) -> Self

source

pub fn populate_and_space(self) -> Self

Trait Implementations§