pub enum ColumnKeyRef<'a> {
Int(i64),
Float(FloatKey),
Str(&'a str),
Bool(bool),
}Expand description
Borrowed group key — zero-copy reference into column data. Used for BTreeMap lookups without per-row allocation.
Variants§
Implementations§
Source§impl<'a> ColumnKeyRef<'a>
impl<'a> ColumnKeyRef<'a>
Sourcepub fn from_column(col: &'a Column, row: usize) -> Self
pub fn from_column(col: &'a Column, row: usize) -> Self
Borrow a key from a column at a given row — zero allocation.
Sourcepub fn to_owned_key(&self) -> GroupKey
pub fn to_owned_key(&self) -> GroupKey
Convert to owned GroupKey (clones string if Str variant).
Trait Implementations§
Source§impl<'a> Debug for ColumnKeyRef<'a>
impl<'a> Debug for ColumnKeyRef<'a>
Source§impl<'a> Ord for ColumnKeyRef<'a>
impl<'a> Ord for ColumnKeyRef<'a>
Source§fn cmp(&self, other: &ColumnKeyRef<'a>) -> Ordering
fn cmp(&self, other: &ColumnKeyRef<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for ColumnKeyRef<'a>
impl<'a> PartialEq for ColumnKeyRef<'a>
Source§impl<'a> PartialOrd for ColumnKeyRef<'a>
impl<'a> PartialOrd for ColumnKeyRef<'a>
impl<'a> Eq for ColumnKeyRef<'a>
impl<'a> StructuralPartialEq for ColumnKeyRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColumnKeyRef<'a>
impl<'a> RefUnwindSafe for ColumnKeyRef<'a>
impl<'a> Send for ColumnKeyRef<'a>
impl<'a> Sync for ColumnKeyRef<'a>
impl<'a> Unpin for ColumnKeyRef<'a>
impl<'a> UnsafeUnpin for ColumnKeyRef<'a>
impl<'a> UnwindSafe for ColumnKeyRef<'a>
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