Trait WithData

Source
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>

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.

Implementations on Foreign Types§

Source§

impl WithData for TokenStream

Source§

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

Implementors§