pub trait FormatRuleWithOptions<T>: FormatRule<T> {
    type Options;

    // Required method
    fn with_options(self, options: Self::Options) -> Self;
}
Expand description

Rule that supports customizing how it formats an object of type T.

Required Associated Types§

Required Methods§

source

fn with_options(self, options: Self::Options) -> Self

Returns a new rule that uses the given options to format an object.

Object Safety§

This trait is not object safe.

Implementors§