Enum tidb_query_codegen::rpn_function::RpnFnRefEvaluableType[][src]

enum RpnFnRefEvaluableType {
    Type(TypePath),
    Ref(TypePath),
}

Parses an evaluable type like &T, JsonRef or BytesRef. &T corresponds to Ref. JsonRef corresponds to Type.

Variants

Type(TypePath)
Ref(TypePath)

Implementations

impl RpnFnRefEvaluableType[src]

fn parse_type_path(input: ParseStream<'_>) -> Result<Self>[src]

Parse type like JsonRef

fn parse_type_ref(input: ParseStream<'_>) -> Result<Self>[src]

Parse type like &T

fn get_type_path(&self) -> TypePath[src]

Transform new JsonRef-like style type to old &Json type.

Note: this is a workaround for current copr framework. After full migration, this function should be deprecated.

fn get_type_with_lifetime(&self, lifetime: TokenStream) -> TokenStream[src]

Add lifetime to current type. JsonRef -> JsonRef<'arg_> Int->&’arg_ Int`

Trait Implementations

impl Parse for RpnFnRefEvaluableType[src]

Auto Trait Implementations

impl RefUnwindSafe for RpnFnRefEvaluableType

impl !Send for RpnFnRefEvaluableType

impl !Sync for RpnFnRefEvaluableType

impl Unpin for RpnFnRefEvaluableType

impl UnwindSafe for RpnFnRefEvaluableType

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.