pub unsafe trait BoundInputSlice<'a> {
type SliceMut;
// Required method
unsafe fn as_view_mut(
&'a mut self,
parameter_index: u16,
stmt: StatementRef<'a>,
) -> Self::SliceMut;
}
Expand description
You can obtain a mutable slice of a column buffer which allows you to change its contents.
§Safety
- If any operations have been performed which would invalidate the pointers bound to the statement, the slice must use the statement handle to rebind the column, at the end of its lifetime (at the latest).
- All values must be complete. I.e. none of the values must be truncated.
Required Associated Types§
Required Methods§
Sourceunsafe fn as_view_mut(
&'a mut self,
parameter_index: u16,
stmt: StatementRef<'a>,
) -> Self::SliceMut
unsafe fn as_view_mut( &'a mut self, parameter_index: u16, stmt: StatementRef<'a>, ) -> Self::SliceMut
Obtain a mutable view on a parameter buffer in order to change the parameter value(s) submitted when executing the statement.
§Safety
- The statement must be the statment the column buffer is bound to. The index must be the parameter index it is bound at.
- All values must be complete. I.e. none of the values must be truncated.