pub trait WithData {
    // Required method
    fn with_data<T>(self, data: T) -> PassedData<T>;
}
Expand description

Add some data to some tokens, wrapping them into PassedData.

Required Methods§

source

fn with_data<T>(self, data: T) -> PassedData<T>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WithData for TokenStream

source§

fn with_data<T>(self, data: T) -> PassedData<T>

Implementors§