pub struct Row(pub Vec<(String, Value)>);Expand description
One pipeline row, preserving column order (unlike a sorted map).
Tuple Fields§
§0: Vec<(String, Value)>Implementations§
Source§impl Row
impl Row
pub fn new() -> Self
pub fn get(&self, key: &str) -> Value
pub fn contains(&self, key: &str) -> bool
Sourcepub fn set(&mut self, key: &str, value: Value)
pub fn set(&mut self, key: &str, value: Value)
Set a key: overwrite in place if present (preserving position), else append.
pub fn columns(&self) -> Vec<String>
Sourcepub fn scope(&self) -> Scope
pub fn scope(&self) -> Scope
A lookup scope for the value dialect (order irrelevant for evaluation). Prefer
lookup on the hot path — it evaluates directly against the row with no map
build (T3).
Sourcepub fn lookup(&self) -> &[(String, Value)]
pub fn lookup(&self) -> &[(String, Value)]
The row as a zero-copy fv_value::Lookup — evaluate an expression against it without
building a Scope per row (the T0-measured 211ns/row saved on filter/applyExpression).
Trait Implementations§
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more