Struct tidb_query_codegen::rpn_function::NormalRpnFn[][src]

struct NormalRpnFn {
    captures: Vec<Expr>,
    extra_validator: Option<TokenStream>,
    metadata_type: Option<TokenStream>,
    metadata_mapper: Option<TokenStream>,
    nullable: bool,
    writer: bool,
    item_fn: ItemFn,
    fn_trait_ident: Ident,
    evaluator_ident: Ident,
    arg_types: Vec<TokenStream>,
    arg_types_anonymous: Vec<TokenStream>,
    arg_types_no_ref: Vec<TokenStream>,
    ret_type: TypePath,
}

Generates an RPN fn which is neither varg or raw_varg.

Fields

captures: Vec<Expr>extra_validator: Option<TokenStream>metadata_type: Option<TokenStream>metadata_mapper: Option<TokenStream>nullable: boolwriter: boolitem_fn: ItemFnfn_trait_ident: Identevaluator_ident: Identarg_types: Vec<TokenStream>arg_types_anonymous: Vec<TokenStream>arg_types_no_ref: Vec<TokenStream>ret_type: TypePath

Implementations

impl NormalRpnFn[src]

fn get_arg_type(attr: &RpnFnAttr, fn_arg: &FnArg) -> Result<RpnFnSignatureParam>[src]

fn new(attr: RpnFnAttr, item_fn: ItemFn) -> Result<Self>[src]

fn generate(self) -> TokenStream[src]

fn generate_fn_trait(&self) -> TokenStream[src]

fn generate_dummy_fn_trait_impl(&self) -> TokenStream[src]

fn generate_real_fn_trait_impl(&self) -> TokenStream[src]

fn generate_evaluator(&self) -> TokenStream[src]

fn generate_constructor(&self) -> TokenStream[src]

Trait Implementations

impl Debug for NormalRpnFn[src]

Auto Trait Implementations

impl RefUnwindSafe for NormalRpnFn

impl !Send for NormalRpnFn

impl !Sync for NormalRpnFn

impl Unpin for NormalRpnFn

impl UnwindSafe for NormalRpnFn

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.