#[non_exhaustive]pub enum ArraySelect {
Each(Box<SelectExpr>),
Indices(HashMap<i64, SelectExpr>),
Slice {
start: Option<i64>,
end: Option<i64>,
step: Option<i64>,
each: Box<SelectExpr>,
},
Filter {
pred: Box<SelectExpr>,
each: Box<SelectExpr>,
},
}Expand description
Array projection strategy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Each(Box<SelectExpr>)
Apply the same expression to every element.
Indices(HashMap<i64, SelectExpr>)
Project listed indices only (keys may be negative before resolve).
Slice
Slice with optional signed bounds and step.
Filter
Filter projection: keep elements where pred is truthy, then apply each.
Trait Implementations§
Source§impl Clone for ArraySelect
impl Clone for ArraySelect
Source§fn clone(&self) -> ArraySelect
fn clone(&self) -> ArraySelect
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 moreSource§impl Debug for ArraySelect
impl Debug for ArraySelect
impl Eq for ArraySelect
Source§impl PartialEq for ArraySelect
impl PartialEq for ArraySelect
impl StructuralPartialEq for ArraySelect
Auto Trait Implementations§
impl Freeze for ArraySelect
impl RefUnwindSafe for ArraySelect
impl Send for ArraySelect
impl Sync for ArraySelect
impl Unpin for ArraySelect
impl UnsafeUnpin for ArraySelect
impl UnwindSafe for ArraySelect
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