diff --git a/src/worktable.rs b/src/worktable.rs index 3ed08b6..b26d6c0 100644 --- a/src/worktable.rs +++ b/src/worktable.rs @@ -426,6 +426,14 @@ impl<'a> RowViewMut<'a> { .unwrap() } #[allow(private_bounds)] + pub fn set(&mut self, field: T, value: T::Type) + where + T: WorkTableField, + for<'b> &'b mut T::Type: From>, + { + *self.index_mut(field) = value; + } + #[allow(private_bounds)] pub fn get_mut(&mut self, column: &str) -> Option<&mut T> where for<'b> &'b mut T: From>,