Enum datafusion_expr::expr::GetFieldAccess
source · pub enum GetFieldAccess {
NamedStructField {
name: ScalarValue,
},
ListIndex {
key: Box<Expr>,
},
ListRange {
start: Box<Expr>,
stop: Box<Expr>,
},
}
Expand description
Access a sub field of a nested type, such as Field
or List
Variants§
NamedStructField
Fields
§
name: ScalarValue
Named field, for example struct["name"]
ListIndex
Single list index, for example: list[i]
ListRange
List range, for example list[i:j]
Trait Implementations§
source§impl Clone for GetFieldAccess
impl Clone for GetFieldAccess
source§fn clone(&self) -> GetFieldAccess
fn clone(&self) -> GetFieldAccess
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetFieldAccess
impl Debug for GetFieldAccess
source§impl Hash for GetFieldAccess
impl Hash for GetFieldAccess
source§impl PartialEq<GetFieldAccess> for GetFieldAccess
impl PartialEq<GetFieldAccess> for GetFieldAccess
source§fn eq(&self, other: &GetFieldAccess) -> bool
fn eq(&self, other: &GetFieldAccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GetFieldAccess
impl StructuralEq for GetFieldAccess
impl StructuralPartialEq for GetFieldAccess
Auto Trait Implementations§
impl !RefUnwindSafe for GetFieldAccess
impl Send for GetFieldAccess
impl Sync for GetFieldAccess
impl Unpin for GetFieldAccess
impl !UnwindSafe for GetFieldAccess
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.