Type Definition odbc_api::parameter::VarCharArray [−][src]
type VarCharArray<const LENGTH: usize> = VarChar<[u8; LENGTH]>;
A stack allocated VARCHAR type able to hold strings up to a length of 32 bytes (including the terminating zero for output strings).
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.
Implementations
impl<const LENGTH: usize> VarCharArray<LENGTH>
[src]
pub const NULL: Self
[src]
Indicates a missing value.
pub fn new(text: &[u8]) -> Self
[src]
Construct from a slice. If value is longer than LENGTH
it will be truncated and a
a terminating zero is placed at the end.