INNER CODE UNIT · Rust
from
apache/datafusion-sqlparser-rs · src/ast/mod.rs:389
fn from(value: &str) -> Self {
Ident {
value: value.to_string(),
quote_style: None,
span: Span::empty(),
}
}
}
pub(crate) fn fmt_ident(
f: &mut fmt::Formatter,
value: &str,
quote_style: Option<char>,
) -> fmt::Result {
match quote_style {
Some('[') => write!(f, "[{value}]"),
Some(q) => {
let escaped = value::escape_quoted_string(value, q);