Trait fix_getters_utils::collectors::token_stream::TokenStreamGetterCollector[][src]

pub trait TokenStreamGetterCollector {
    type GetterCollection: GetterCollection;
    fn collect(
        path: &Path,
        scope: &Scope,
        stream: &TokenStream,
        identification_mode: IdentificationMode,
        getter_collection: &Self::GetterCollection
    ); }
Expand description

A Getters collector visting a TokenStream.

A TokenStream is provided by syn when a macro is encountered.

This is also useful to parse documentation, once the different lines of the documentation and the code it contains is gethered together. Use a DocCodeGetterCollector for that.

For regular Rust code, it is easier to work on a SyntaxTree using a SyntaxTreeGetterCollector.

Associated Types

Required methods

fn collect(
    path: &Path,
    scope: &Scope,
    stream: &TokenStream,
    identification_mode: IdentificationMode,
    getter_collection: &Self::GetterCollection
)
[src]

Parses the TokenStream collecting Getters in the GetterCollection.

Implementors