pub struct Subscript {
pub container: Expr,
pub upper: Vec<Option<Expr>>,
pub lower: Option<Vec<Option<Expr>>>,
pub assign: Option<Expr>,
}Expand description
The parts of a fetch from an array or of an assignment to a part of an array, as SubscriptingRef.
Fields§
§container: Exprrefexpr: the array.
upper: Vec<Option<Expr>>refupperindexpr: the subscript of each dimension, or the upper bound of a slice. None is a bound that the query does not give.
lower: Option<Vec<Option<Expr>>>reflowerindexpr: the lower bound of each dimension of a slice, or None for one element.
assign: Option<Expr>refassgnexpr: the new value of the element or of the slice in an assignment, as a[1] := 5 of PL/pgSQL makes it. The result of an assignment is the array with the new value.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Subscript
Auto Trait Implementations§
impl Freeze for Subscript
impl RefUnwindSafe for Subscript
impl Send for Subscript
impl Sync for Subscript
impl Unpin for Subscript
impl UnsafeUnpin for Subscript
impl UnwindSafe for Subscript
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