pub struct GroupedRow { /* private fields */ }Expand description
GroupedRow
One grouped public output row: ordered grouping key values plus ordered aggregate outputs. Group and aggregate vectors preserve query declaration order at the outward API boundary.
Implementations§
Source§impl GroupedRow
impl GroupedRow
Sourcepub fn new<I, J, K, L>(group_key: I, aggregate_values: J) -> Selfwhere
I: IntoIterator<Item = K>,
J: IntoIterator<Item = L>,
K: Into<OutputValue>,
L: Into<OutputValue>,
pub fn new<I, J, K, L>(group_key: I, aggregate_values: J) -> Selfwhere
I: IntoIterator<Item = K>,
J: IntoIterator<Item = L>,
K: Into<OutputValue>,
L: Into<OutputValue>,
Construct one grouped output row payload.
Sourcepub const fn group_key(&self) -> &[OutputValue]
pub const fn group_key(&self) -> &[OutputValue]
Borrow grouped key values.
Sourcepub const fn aggregate_values(&self) -> &[OutputValue]
pub const fn aggregate_values(&self) -> &[OutputValue]
Borrow aggregate output values.
Trait Implementations§
Source§impl Clone for GroupedRow
impl Clone for GroupedRow
Source§fn clone(&self) -> GroupedRow
fn clone(&self) -> GroupedRow
Returns a duplicate 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 GroupedRow
impl Debug for GroupedRow
Source§impl PartialEq for GroupedRow
impl PartialEq for GroupedRow
impl Eq for GroupedRow
impl ResponseRow for GroupedRow
impl StructuralPartialEq for GroupedRow
Auto Trait Implementations§
impl Freeze for GroupedRow
impl RefUnwindSafe for GroupedRow
impl Send for GroupedRow
impl Sync for GroupedRow
impl Unpin for GroupedRow
impl UnsafeUnpin for GroupedRow
impl UnwindSafe for GroupedRow
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