pub trait HasItemsInCfgEx<Item: QueryAttrs>: BodyItems<Item = Item> {
// Required method
fn iter_items_in_cfg<'a>(
&self,
db: &'a dyn SyntaxGroup,
cfg_set: &'a CfgSet,
) -> impl Iterator<Item = Item> + 'a;
}Expand description
Extension trait for BodyItems filtering out items that are not included in the cfg.
Required Methods§
fn iter_items_in_cfg<'a>( &self, db: &'a dyn SyntaxGroup, cfg_set: &'a CfgSet, ) -> impl Iterator<Item = Item> + 'a
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.