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: TryFromValue>(
&self,
column: &str,
) -> Result<Option<T>, FrameError>
pub fn get<T: TryFromValue>( &self, column: &str, ) -> Result<Option<T>, FrameError>
Get a typed value from this row by column name (strict type matching).
Returns Ok(None) for Undefined values.
Sourcepub fn get_coerce<T: TryFromValueCoerce>(
&self,
column: &str,
) -> Result<Option<T>, FrameError>
pub fn get_coerce<T: TryFromValueCoerce>( &self, column: &str, ) -> Result<Option<T>, FrameError>
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).