Sources

Trait Sources 

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

A trait that defines a method for retrieving an iterator over source files.

The Sources trait is used to represent objects that can provide an iterator over their contained source files. This can be useful in scenarios where you need to access or process all source files associated with an object.

Required Methods§

Source

fn sources(&self) -> impl IterTrait<'_, SourceFile>

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§