CodeItems

Trait CodeItems 

Source
pub trait CodeItems {
    // Required method
    fn items(&self) -> impl IterTrait<'_, Item>;
}
Expand description

A trait for retrieving an iterator over items of a source file.

The CodeItems trait is used to represent objects that can provide an iterator over their contained source files. This is useful in scenarios where you need to access or process all source files associated with an object, such as a workspace or a package.

Required Methods§

Source

fn items(&self) -> impl IterTrait<'_, Item>

Returns an iterator over the source files.

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.

Implementors§