Module char

Source

Structsยง

Char
A marker type indicating that a Rust string should be interpreted as a SqlScalarType::Char.
CharLength
The length of a SqlScalarType::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.