Struct tidb_query_codegen::rpn_function::NormalRpnFn [−][src]
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: 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
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,