Struct tidb_query_codegen::rpn_function::ValidatorFnGenerator[][src]

struct ValidatorFnGenerator {
    tokens: Vec<TokenStream>,
}

Helper utility to generate RPN function validator function.

Fields

tokens: Vec<TokenStream>

Implementations

impl ValidatorFnGenerator[src]

fn new() -> Self[src]

fn validate_return_type(self, evaluable: &TypePath) -> Self[src]

fn validate_max_args(self, max_args: Option<usize>) -> Self[src]

fn validate_min_args(self, min_args: Option<usize>) -> Self[src]

fn validate_args_identical_type(self, args_evaluable: &TokenStream) -> Self[src]

fn validate_args_type(self, args_evaluables: &[TokenStream]) -> Self[src]

fn validate_by_fn(self, extra_validator: &Option<TokenStream>) -> Self[src]

fn generate(
    self,
    impl_generics: &ImplGenerics<'_>,
    where_clause: Option<&WhereClause>
) -> TokenStream
[src]

Auto Trait Implementations

impl RefUnwindSafe for ValidatorFnGenerator

impl !Send for ValidatorFnGenerator

impl !Sync for ValidatorFnGenerator

impl Unpin for ValidatorFnGenerator

impl UnwindSafe for ValidatorFnGenerator

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.