Type Definition odbc_api::parameter::VarCharArray[][src]

type VarCharArray<const LENGTH: usize> = VarChar<[u8; LENGTH]>;
Expand description

A stack allocated VARCHAR 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.

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. In that case the last byte will be set to 0.

Trait Implementations

impl<const LENGTH: usize> InputParameter for VarCharArray<LENGTH>[src]

impl<const LENGTH: usize> Output for VarCharArray<LENGTH>[src]