pub trait FreeVariableWithContext<Ctx> {
    type O;

    // Required method
    fn to_tokens(self, ctx: &Ctx) -> (Option<TokenStream>, Option<TokenStream>)
       where Self: Sized;

    // Provided method
    fn uninitialized(&self, _ctx: &Ctx) -> Self::O { ... }
}

Required Associated Types§

source

type O

Required Methods§

source

fn to_tokens(self, ctx: &Ctx) -> (Option<TokenStream>, Option<TokenStream>)
where Self: Sized,

Provided Methods§

source

fn uninitialized(&self, _ctx: &Ctx) -> Self::O

Implementations on Foreign Types§

source§

impl<Ctx> FreeVariableWithContext<Ctx> for &str

source§

type O = &'static str

source§

fn to_tokens(self, _ctx: &Ctx) -> (Option<TokenStream>, Option<TokenStream>)

source§

impl<Ctx> FreeVariableWithContext<Ctx> for i8

source§

impl<Ctx> FreeVariableWithContext<Ctx> for i16

source§

impl<Ctx> FreeVariableWithContext<Ctx> for i32

source§

impl<Ctx> FreeVariableWithContext<Ctx> for i64

source§

impl<Ctx> FreeVariableWithContext<Ctx> for i128

source§

impl<Ctx> FreeVariableWithContext<Ctx> for isize

source§

impl<Ctx> FreeVariableWithContext<Ctx> for u8

source§

impl<Ctx> FreeVariableWithContext<Ctx> for u16

source§

impl<Ctx> FreeVariableWithContext<Ctx> for u32

source§

impl<Ctx> FreeVariableWithContext<Ctx> for u64

source§

impl<Ctx> FreeVariableWithContext<Ctx> for u128

source§

impl<Ctx> FreeVariableWithContext<Ctx> for usize

Implementors§

source§

impl<T, Ctx> FreeVariableWithContext<Ctx> for RuntimeData<T>

source§

type O = T

source§

impl<T, Ctx> FreeVariableWithContext<Ctx> for Import<T>

source§

type O = T

source§

impl<T, Ctx, F: for<'b> FnOnce(&'b Ctx, &mut String, &mut &'static str, &mut TokenStream, &mut CaptureVec, bool) -> T> FreeVariableWithContext<Ctx> for F

source§

type O = T