#[repr(i32)]pub enum VariableEvaluationMode {
Unspecified = 0,
PerPlan = 1,
PerRecord = 2,
}Expand description
VariableEvaluationMode specifies the frequency and scope of execution context variable evaluation.
Variants§
Unspecified = 0
PerPlan = 1
Variables are evaluated once per Substrait plan execution.
PerRecord = 2
Variables are evaluated once per record during execution.
Implementations§
Source§impl VariableEvaluationMode
impl VariableEvaluationMode
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of VariableEvaluationMode.
Sourcepub fn from_i32(value: i32) -> Option<VariableEvaluationMode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<VariableEvaluationMode>
Use the TryFrom<i32> implementation instead
Converts an i32 to a VariableEvaluationMode, or None if value is not a valid variant.
Source§impl VariableEvaluationMode
impl VariableEvaluationMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<VariableEvaluationMode>
pub fn from_str_name(value: &str) -> Option<VariableEvaluationMode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for VariableEvaluationMode
impl Clone for VariableEvaluationMode
Source§fn clone(&self) -> VariableEvaluationMode
fn clone(&self) -> VariableEvaluationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VariableEvaluationMode
Source§impl Debug for VariableEvaluationMode
impl Debug for VariableEvaluationMode
Source§impl Default for VariableEvaluationMode
impl Default for VariableEvaluationMode
Source§fn default() -> VariableEvaluationMode
fn default() -> VariableEvaluationMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableEvaluationMode
impl<'de> Deserialize<'de> for VariableEvaluationMode
Source§fn deserialize<D>(
deserializer: D,
) -> Result<VariableEvaluationMode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<VariableEvaluationMode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VariableEvaluationMode
Source§impl Hash for VariableEvaluationMode
impl Hash for VariableEvaluationMode
Source§impl Ord for VariableEvaluationMode
impl Ord for VariableEvaluationMode
Source§fn cmp(&self, other: &VariableEvaluationMode) -> Ordering
fn cmp(&self, other: &VariableEvaluationMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VariableEvaluationMode
impl PartialEq for VariableEvaluationMode
Source§impl PartialOrd for VariableEvaluationMode
impl PartialOrd for VariableEvaluationMode
Source§impl Serialize for VariableEvaluationMode
impl Serialize for VariableEvaluationMode
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VariableEvaluationMode
Source§impl TryFrom<i32> for VariableEvaluationMode
impl TryFrom<i32> for VariableEvaluationMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<VariableEvaluationMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<VariableEvaluationMode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for VariableEvaluationMode
impl RefUnwindSafe for VariableEvaluationMode
impl Send for VariableEvaluationMode
impl Sync for VariableEvaluationMode
impl Unpin for VariableEvaluationMode
impl UnsafeUnpin for VariableEvaluationMode
impl UnwindSafe for VariableEvaluationMode
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.