pub struct FrameRow<'a> { /* private fields */ }Expand description
A reference to a single row in a Frame.
Provides ergonomic access to column values by name.
Implementations§
Source§impl<'a> FrameRow<'a>
impl<'a> FrameRow<'a>
Sourcepub fn get<T>(&self, column: &str) -> Result<Option<T>, FrameError>where
T: TryFromValue,
pub fn get<T>(&self, column: &str) -> Result<Option<T>, FrameError>where
T: TryFromValue,
Get a typed value from this row by column name (strict type matching).
Returns Ok(None) for Undefined values.
Sourcepub fn get_coerce<T>(&self, column: &str) -> Result<Option<T>, FrameError>where
T: TryFromValueCoerce,
pub fn get_coerce<T>(&self, column: &str) -> Result<Option<T>, FrameError>where
T: TryFromValueCoerce,
Get a typed value with widening coercion.
Returns Ok(None) for Undefined values.
Sourcepub fn get_value(&self, column: &str) -> Option<Value>
pub fn get_value(&self, column: &str) -> Option<Value>
Get the raw Value by column name.
Returns the owned Value, or None if the column doesn’t exist.
Sourcepub fn row_number(&self) -> Option<RowNumber>
pub fn row_number(&self) -> Option<RowNumber>
Get the row number from frame metadata, if available.
Sourcepub fn is_defined(&self, column: &str) -> Option<bool>
pub fn is_defined(&self, column: &str) -> Option<bool>
Check if a column value is defined (not Undefined).