pub trait RegularPlugin: NativePlugin { }Expand description
Marker trait: a plugin that runs in the post-booking regular pass.
Regular plugins transform already-booked directives. The
cost-spec-reading ones (implicit_prices,
capital_gains_classifier, check_average_cost, sell_gains,
unrealized, valuation) specifically need to see filled-in
per-unit values on CostNumber::PerUnitFromTotal — which is
what booking produces. Running them pre-booking would see the
raw Total shape and produce wrong results.
Implement this trait (in addition to NativePlugin) for any
plugin that transforms post-booking directives. Most plugins go
here.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".