pub struct GroupKey { /* private fields */ }Expand description
The reduce key of a group, decoded from its first row.
Empty unless the group came from JobReader::groups_by.
Implementations§
Source§impl GroupKey
impl GroupKey
Sourcepub fn bytes(&self, name: &str) -> Option<&[u8]>
pub fn bytes(&self, name: &str) -> Option<&[u8]>
The key column name as raw bytes, if it is a string.
Reduce keys are frequently byte strings rather than text, so this does
not go through str.
Sourcepub fn str(&self, name: &str) -> Option<&str>
pub fn str(&self, name: &str) -> Option<&str>
The key column name as UTF-8, if it is a string and valid UTF-8.
Trait Implementations§
impl StructuralPartialEq for GroupKey
Auto Trait Implementations§
impl Freeze for GroupKey
impl RefUnwindSafe for GroupKey
impl Send for GroupKey
impl Sync for GroupKey
impl Unpin for GroupKey
impl UnsafeUnpin for GroupKey
impl UnwindSafe for GroupKey
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