pub enum PartitionOfBoundsAst {
Range {
lower: Box<Expr>,
upper: Box<Expr>,
},
List {
values: Vec<Expr>,
},
Hash {
modulus: u32,
remainder: u32,
},
Default,
}Variants§
Range
FOR VALUES FROM (lower) TO (upper). Expr is ~144 bytes
(lits include vector bodies), so we box both bounds to keep
the variant size in line with Default for clippy and to
minimise per-statement footprint when the partition shape
isn’t in use.
List
v7.37.16 (16.1) — FOR VALUES IN (lit [, lit, …]). Each
expr resolves to a typed literal at child-create time.
Hash
v7.37.16 (16.2) — FOR VALUES WITH (MODULUS m, REMAINDER r).
PG enforces 0 ≤ r < m; m must be positive.
Default
Trait Implementations§
Source§impl Clone for PartitionOfBoundsAst
impl Clone for PartitionOfBoundsAst
Source§fn clone(&self) -> PartitionOfBoundsAst
fn clone(&self) -> PartitionOfBoundsAst
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 PartitionOfBoundsAst
impl Debug for PartitionOfBoundsAst
Source§impl PartialEq for PartitionOfBoundsAst
impl PartialEq for PartitionOfBoundsAst
impl StructuralPartialEq for PartitionOfBoundsAst
Auto Trait Implementations§
impl Freeze for PartitionOfBoundsAst
impl RefUnwindSafe for PartitionOfBoundsAst
impl Send for PartitionOfBoundsAst
impl Sync for PartitionOfBoundsAst
impl Unpin for PartitionOfBoundsAst
impl UnsafeUnpin for PartitionOfBoundsAst
impl UnwindSafe for PartitionOfBoundsAst
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