pub enum RexNode {
InputRef(u32),
Constant(Datum),
FuncCall(FunctionCall),
Udf(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 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 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 fn as_udf_mut(&mut self) -> Option<&mut UserDefinedFunction>
pub fn as_udf_mut(&mut self) -> Option<&mut UserDefinedFunction>
Optionally returns mutable references to the inner fields if this is a RexNode::Udf
, otherwise None
sourcepub fn as_udf(&self) -> Option<&UserDefinedFunction>
pub fn as_udf(&self) -> Option<&UserDefinedFunction>
Optionally returns references to the inner fields if this is a RexNode::Udf
, otherwise None
sourcepub fn into_udf(self) -> Result<UserDefinedFunction, Self>
pub fn into_udf(self) -> Result<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 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
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§
source§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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request