Enum tidb_query_codegen::rpn_function::RpnFnRefEvaluableType [−][src]
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]
fn parse(input: ParseStream<'_>) -> Result<Self>[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]
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>,