Function repr::adt::char::format_char_str [−][src]
fn format_char_str(
s: &str,
length: Option<usize>,
fail_on_len: bool,
white_space: CharWhiteSpace
) -> Result<String, Error>Expand description
Returns s as a String with options to enforce char and varchar
semantics.
Arguments
s- Thestrto formatlength- An optional maximum length for the stringfail_on_len- Return an error ifs’s character count exceeds the specified maximum length.white_space- Express how to handle trailing whitespace ons