pub enum RexNode {
InputRef(u32),
Constant(Datum),
FuncCall(FunctionCall),
Udf(Box<UserDefinedFunction>),
Now(NowRexNode),
}Variants§
Implementations§
Source§impl RexNode
impl RexNode
Sourcepub fn merge(
field: &mut Option<RexNode>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<RexNode>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§impl RexNode
impl RexNode
Sourcepub fn is_input_ref(&self) -> bool
pub fn is_input_ref(&self) -> bool
Returns true if this is a RexNode::InputRef, otherwise false
Sourcepub fn as_input_ref_mut(&mut self) -> Option<&mut u32>
pub fn as_input_ref_mut(&mut self) -> Option<&mut u32>
Optionally returns mutable references to the inner fields if this is a RexNode::InputRef, otherwise None
Sourcepub fn as_input_ref(&self) -> Option<&u32>
pub fn as_input_ref(&self) -> Option<&u32>
Optionally returns references to the inner fields if this is a RexNode::InputRef, otherwise None
Sourcepub fn into_input_ref(self) -> Result<u32, Self>
pub fn into_input_ref(self) -> Result<u32, Self>
Returns the inner fields if this is a RexNode::InputRef, otherwise returns back the enum in the Err case of the result
Sourcepub unsafe fn into_input_ref_unchecked(self) -> u32
pub unsafe fn into_input_ref_unchecked(self) -> u32
Unchecked return of the inner fields of RexNode::InputRef.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_input_ref_unchecked(&self) -> &u32
pub unsafe fn as_input_ref_unchecked(&self) -> &u32
Unchecked reference of the inner fields of RexNode::InputRef.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_input_ref_mut_unchecked(&mut self) -> &mut u32
pub unsafe fn as_input_ref_mut_unchecked(&mut self) -> &mut u32
Unchecked mutable reference of the inner fields of RexNode::InputRef.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Returns true if this is a RexNode::Constant, otherwise false
Sourcepub fn as_constant_mut(&mut self) -> Option<&mut Datum>
pub fn as_constant_mut(&mut self) -> Option<&mut Datum>
Optionally returns mutable references to the inner fields if this is a RexNode::Constant, otherwise None
Sourcepub fn as_constant(&self) -> Option<&Datum>
pub fn as_constant(&self) -> Option<&Datum>
Optionally returns references to the inner fields if this is a RexNode::Constant, otherwise None
Sourcepub fn into_constant(self) -> Result<Datum, Self>
pub fn into_constant(self) -> Result<Datum, Self>
Returns the inner fields if this is a RexNode::Constant, otherwise returns back the enum in the Err case of the result
Sourcepub unsafe fn into_constant_unchecked(self) -> Datum
pub unsafe fn into_constant_unchecked(self) -> Datum
Unchecked return of the inner fields of RexNode::Constant.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_constant_unchecked(&self) -> &Datum
pub unsafe fn as_constant_unchecked(&self) -> &Datum
Unchecked reference of the inner fields of RexNode::Constant.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_constant_mut_unchecked(&mut self) -> &mut Datum
pub unsafe fn as_constant_mut_unchecked(&mut self) -> &mut Datum
Unchecked mutable reference of the inner fields of RexNode::Constant.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub fn is_func_call(&self) -> bool
pub fn is_func_call(&self) -> bool
Returns true if this is a RexNode::FuncCall, otherwise false
Sourcepub fn as_func_call_mut(&mut self) -> Option<&mut FunctionCall>
pub fn as_func_call_mut(&mut self) -> Option<&mut FunctionCall>
Optionally returns mutable references to the inner fields if this is a RexNode::FuncCall, otherwise None
Sourcepub fn as_func_call(&self) -> Option<&FunctionCall>
pub fn as_func_call(&self) -> Option<&FunctionCall>
Optionally returns references to the inner fields if this is a RexNode::FuncCall, otherwise None
Sourcepub fn into_func_call(self) -> Result<FunctionCall, Self>
pub fn into_func_call(self) -> Result<FunctionCall, Self>
Returns the inner fields if this is a RexNode::FuncCall, otherwise returns back the enum in the Err case of the result
Sourcepub unsafe fn into_func_call_unchecked(self) -> FunctionCall
pub unsafe fn into_func_call_unchecked(self) -> FunctionCall
Unchecked return of the inner fields of RexNode::FuncCall.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_func_call_unchecked(&self) -> &FunctionCall
pub unsafe fn as_func_call_unchecked(&self) -> &FunctionCall
Unchecked reference of the inner fields of RexNode::FuncCall.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_func_call_mut_unchecked(&mut self) -> &mut FunctionCall
pub unsafe fn as_func_call_mut_unchecked(&mut self) -> &mut FunctionCall
Unchecked mutable reference of the inner fields of RexNode::FuncCall.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub fn as_udf_mut(&mut self) -> Option<&mut Box<UserDefinedFunction>>
pub fn as_udf_mut(&mut self) -> Option<&mut Box<UserDefinedFunction>>
Optionally returns mutable references to the inner fields if this is a RexNode::Udf, otherwise None
Sourcepub fn as_udf(&self) -> Option<&Box<UserDefinedFunction>>
pub fn as_udf(&self) -> Option<&Box<UserDefinedFunction>>
Optionally returns references to the inner fields if this is a RexNode::Udf, otherwise None
Sourcepub fn into_udf(self) -> Result<Box<UserDefinedFunction>, Self>
pub fn into_udf(self) -> Result<Box<UserDefinedFunction>, Self>
Returns the inner fields if this is a RexNode::Udf, otherwise returns back the enum in the Err case of the result
Sourcepub unsafe fn into_udf_unchecked(self) -> Box<UserDefinedFunction>
pub unsafe fn into_udf_unchecked(self) -> Box<UserDefinedFunction>
Unchecked return of the inner fields of RexNode::Udf.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_udf_unchecked(&self) -> &Box<UserDefinedFunction>
pub unsafe fn as_udf_unchecked(&self) -> &Box<UserDefinedFunction>
Unchecked reference of the inner fields of RexNode::Udf.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_udf_mut_unchecked(&mut self) -> &mut Box<UserDefinedFunction>
pub unsafe fn as_udf_mut_unchecked(&mut self) -> &mut Box<UserDefinedFunction>
Unchecked mutable reference of the inner fields of RexNode::Udf.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub fn as_now_mut(&mut self) -> Option<&mut NowRexNode>
pub fn as_now_mut(&mut self) -> Option<&mut NowRexNode>
Optionally returns mutable references to the inner fields if this is a RexNode::Now, otherwise None
Sourcepub fn as_now(&self) -> Option<&NowRexNode>
pub fn as_now(&self) -> Option<&NowRexNode>
Optionally returns references to the inner fields if this is a RexNode::Now, otherwise None
Sourcepub fn into_now(self) -> Result<NowRexNode, Self>
pub fn into_now(self) -> Result<NowRexNode, Self>
Returns the inner fields if this is a RexNode::Now, otherwise returns back the enum in the Err case of the result
Sourcepub unsafe fn into_now_unchecked(self) -> NowRexNode
pub unsafe fn into_now_unchecked(self) -> NowRexNode
Unchecked return of the inner fields of RexNode::Now.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_now_unchecked(&self) -> &NowRexNode
pub unsafe fn as_now_unchecked(&self) -> &NowRexNode
Unchecked reference of the inner fields of RexNode::Now.
§Safety
Results in undefined behavior when it is the incorrect variant.
Sourcepub unsafe fn as_now_mut_unchecked(&mut self) -> &mut NowRexNode
pub unsafe fn as_now_mut_unchecked(&mut self) -> &mut NowRexNode
Unchecked mutable reference of the inner fields of RexNode::Now.
§Safety
Results in undefined behavior when it is the incorrect variant.
Trait Implementations§
impl Eq for RexNode
impl StructuralPartialEq for RexNode
Auto Trait Implementations§
impl Freeze for RexNode
impl RefUnwindSafe for RexNode
impl Send for RexNode
impl Sync for RexNode
impl Unpin for RexNode
impl UnwindSafe for RexNode
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].