Trait stageleft::QuotedWithContext

source ·
pub trait QuotedWithContext<'a, T, Ctx>: FreeVariableWithContext<Ctx, O = T> {
    // Provided methods
    fn splice_untyped_ctx(self, ctx: &Ctx) -> Expr
       where Self: Sized { ... }
    fn splice_typed_ctx(self, ctx: &Ctx) -> Expr
       where Self: Sized { ... }
    fn splice_fn0_ctx<O>(self, ctx: &Ctx) -> Expr
       where Self: Sized,
             T: Fn() -> O { ... }
    fn splice_fn1_ctx<I, O>(self, ctx: &Ctx) -> Expr
       where Self: Sized,
             T: Fn(I) -> O { ... }
    fn splice_fn1_borrow_ctx<I, O>(self, ctx: &Ctx) -> Expr
       where Self: Sized,
             T: Fn(&I) -> O { ... }
    fn splice_fn2_borrow_mut_ctx<I1, I2, O>(self, ctx: &Ctx) -> Expr
       where Self: Sized,
             T: Fn(&mut I1, I2) -> O { ... }
    fn splice_untyped(self) -> Expr
       where Self: Sized,
             Ctx: Default { ... }
    fn splice_typed(self) -> Expr
       where Self: Sized,
             Ctx: Default { ... }
    fn splice_fn0<O>(self) -> Expr
       where Self: Sized,
             Ctx: Default,
             T: Fn() -> O { ... }
    fn splice_fn1<I, O>(self) -> Expr
       where Self: Sized,
             Ctx: Default,
             T: Fn(I) -> O { ... }
    fn splice_fn1_borrow<I, O>(self) -> Expr
       where Self: Sized,
             Ctx: Default,
             T: Fn(&I) -> O { ... }
    fn splice_fn2_borrow_mut<I1, I2, O>(self) -> Expr
       where Self: Sized,
             Ctx: Default,
             T: Fn(&mut I1, I2) -> O { ... }
}

Provided Methods§

source

fn splice_untyped_ctx(self, ctx: &Ctx) -> Expr
where Self: Sized,

source

fn splice_typed_ctx(self, ctx: &Ctx) -> Expr
where Self: Sized,

source

fn splice_fn0_ctx<O>(self, ctx: &Ctx) -> Expr
where Self: Sized, T: Fn() -> O,

source

fn splice_fn1_ctx<I, O>(self, ctx: &Ctx) -> Expr
where Self: Sized, T: Fn(I) -> O,

source

fn splice_fn1_borrow_ctx<I, O>(self, ctx: &Ctx) -> Expr
where Self: Sized, T: Fn(&I) -> O,

source

fn splice_fn2_borrow_mut_ctx<I1, I2, O>(self, ctx: &Ctx) -> Expr
where Self: Sized, T: Fn(&mut I1, I2) -> O,

source

fn splice_untyped(self) -> Expr
where Self: Sized, Ctx: Default,

source

fn splice_typed(self) -> Expr
where Self: Sized, Ctx: Default,

source

fn splice_fn0<O>(self) -> Expr
where Self: Sized, Ctx: Default, T: Fn() -> O,

source

fn splice_fn1<I, O>(self) -> Expr
where Self: Sized, Ctx: Default, T: Fn(I) -> O,

source

fn splice_fn1_borrow<I, O>(self) -> Expr
where Self: Sized, Ctx: Default, T: Fn(&I) -> O,

source

fn splice_fn2_borrow_mut<I1, I2, O>(self) -> Expr
where Self: Sized, Ctx: Default, T: Fn(&mut I1, I2) -> O,

Implementations on Foreign Types§

source§

impl<'a, Ctx> QuotedWithContext<'a, i8, Ctx> for i8

source§

impl<'a, Ctx> QuotedWithContext<'a, i16, Ctx> for i16

source§

impl<'a, Ctx> QuotedWithContext<'a, i32, Ctx> for i32

source§

impl<'a, Ctx> QuotedWithContext<'a, i64, Ctx> for i64

source§

impl<'a, Ctx> QuotedWithContext<'a, i128, Ctx> for i128

source§

impl<'a, Ctx> QuotedWithContext<'a, isize, Ctx> for isize

source§

impl<'a, Ctx> QuotedWithContext<'a, u8, Ctx> for u8

source§

impl<'a, Ctx> QuotedWithContext<'a, u16, Ctx> for u16

source§

impl<'a, Ctx> QuotedWithContext<'a, u32, Ctx> for u32

source§

impl<'a, Ctx> QuotedWithContext<'a, u64, Ctx> for u64

source§

impl<'a, Ctx> QuotedWithContext<'a, u128, Ctx> for u128

source§

impl<'a, Ctx> QuotedWithContext<'a, usize, Ctx> for usize

Implementors§

source§

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

source§

impl<'a, T: 'a, Ctx> QuotedWithContext<'a, T, Ctx> for RuntimeData<T>