pub 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

Indicates a missing value.

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