Module char

Source

Structs§

Char
A marker type indicating that a Rust string should be interpreted as a ScalarType::Char.
CharLength
The length of a ScalarType::Char.
InvalidCharLengthError
The error returned when constructing a CharLength from an invalid value.
ProtoCharLength

Enums§

CharWhiteSpace 🔒
Controls how to handle trailing whitespace at the end of bpchar data.

Constants§

MAX_LENGTH 🔒

Functions§

format_char_str 🔒
Returns s as a String with options to enforce char and varchar semantics.
format_str_pad
Ensures that s has fewer than length characters, and returns a String version of it with blank padding so that its width is length characters.
format_str_trim
Ensures that s has fewer than length characters, and returns a String version of it with all whitespace trimmed from the end.