pub enum DataInput {
Value(DataValue),
Key(String),
Function(String, Function),
Mod(String, DataValue),
}Expand description
One side of a filter expression — a literal value, column key, or function call.
Variants§
Implementations§
Source§impl DataInput
impl DataInput
Sourcepub fn as_key(&self) -> Option<&str>
pub fn as_key(&self) -> Option<&str>
Returns the column name if this is a Key, Function, or Mod variant.
Sourcepub fn value(&self) -> DataValue
pub fn value(&self) -> DataValue
Returns the contained DataValue, or DataValue::Null for
function/mod variants.
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Returns true if this input is a function call (e.g. .len()).
Trait Implementations§
impl StructuralPartialEq for DataInput
Auto Trait Implementations§
impl Freeze for DataInput
impl RefUnwindSafe for DataInput
impl Send for DataInput
impl Sync for DataInput
impl Unpin for DataInput
impl UnsafeUnpin for DataInput
impl UnwindSafe for DataInput
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