pub struct SortGroup {
pub target: usize,
pub operator: u32,
pub sort: u32,
pub equal: u32,
pub nulls_first: bool,
pub hashable: bool,
}Expand description
An item of ORDER BY, GROUP BY, DISTINCT or DISTINCT ON, as SortGroupClause.
Fields§
§target: usizeThe index of the column in crate::Query::targets.
operator: u32The OID of the sort operator, or 0.
sort: u32The function of the operator that puts a value first, < for ASC and > for DESC, or 0 when the type has no order.
equal: u32The function of the = operator.
nulls_first: boolTrue when a null comes before the other values.
hashable: boolTrue when the = operator can use a hash table, as op_hashjoinable gives it.
Trait Implementations§
impl Eq for SortGroup
impl StructuralPartialEq for SortGroup
Auto Trait Implementations§
impl Freeze for SortGroup
impl RefUnwindSafe for SortGroup
impl Send for SortGroup
impl Sync for SortGroup
impl Unpin for SortGroup
impl UnsafeUnpin for SortGroup
impl UnwindSafe for SortGroup
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