pub struct WriteContext(/* private fields */);
Expand description
Extra contextual info for accurating recreating read tables when writing
This entirely exists to handle the edge case where you read a table, remove all of its rows, and then try to write it. If there are optional rowed values, there is no clear way to know if a column should be written as zero or rowed.
This is used by the utf_table
macro. When a table is read, a context is
created with the state of the columns. When a table is created, a context is
created and configured based on the schema provided to the macro.
It is untested whether or not this approach holds, so this type is subject to removal.
Implementations§
Source§impl WriteContext
impl WriteContext
Sourcepub fn is_included(&self, column_name: &str) -> bool
pub fn is_included(&self, column_name: &str) -> bool
Auto Trait Implementations§
impl Freeze for WriteContext
impl RefUnwindSafe for WriteContext
impl Send for WriteContext
impl Sync for WriteContext
impl Unpin for WriteContext
impl UnwindSafe for WriteContext
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