pub type VarWCharArray<const LENGTH: usize> = VarCell<[u16; LENGTH], WideText>;
Expand description
A stack allocated NVARCHAR type.
Due to its memory layout this type can be bound either as a single parameter, or as a column of a row-by-row output, but not be used in columnar parameter arrays or output buffers.
Aliased Type§
struct VarWCharArray<const LENGTH: usize> { /* private fields */ }
Trait Implementations§
Source§impl<const LENGTH: usize> FetchRowMember for VarWCharArray<LENGTH>
impl<const LENGTH: usize> FetchRowMember for VarWCharArray<LENGTH>
Source§fn indicator(&self) -> Option<Indicator>
fn indicator(&self) -> Option<Indicator>
Indicator for variable sized or nullable types,
None
for fixed sized types.Source§fn find_truncation(&self, buffer_index: usize) -> Option<TruncationInfo>
fn find_truncation(&self, buffer_index: usize) -> Option<TruncationInfo>
Some
if the indicator indicates truncation. Always None
for fixed sized types.Source§unsafe fn bind_to_col(
&mut self,
col_index: u16,
cursor: &mut StatementRef<'_>,
) -> Result<(), Error>
unsafe fn bind_to_col( &mut self, col_index: u16, cursor: &mut StatementRef<'_>, ) -> Result<(), Error>
Bind row element to column. Only called for the first row in a row wise buffer. Read more