Struct tidb_query_codegen::rpn_function::ValidatorFnGenerator [−][src]
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]
self,
impl_generics: &ImplGenerics<'_>,
where_clause: Option<&WhereClause>
) -> TokenStream
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]
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>,