Skip to main content

derive_deftly_template_ParseOptions

Macro derive_deftly_template_ParseOptions 

Source
macro_rules! derive_deftly_template_ParseOptions {
    ({ $($driver:tt)* } [$($aoptions:tt)*] ($($future:tt)*) $($tpassthrough:tt)*) => { ... };
    ($($wrong:tt)*) => { ... };
}
Expand description

Define parse_options accessor

The driver must have a lifetime named 's, which is suitable for the returned &'s ParseOptions.

ยงTop-level attributes:

  • #[deftly(parse_options(field = ".field.field"))], default .options

This is a derive_deftly template. Do not invoke it directly. To use it, write: #[derive(Deftly)] #[derive_deftly(ParseOptions)].