INNER CODE UNIT · Rust
with_quote
apache/datafusion-sqlparser-rs · src/ast/mod.rs:350
pub fn with_quote<S>(quote: char, value: S) -> Self
where
S: Into<String>,
{
assert!(quote == '\'' || quote == '"' || quote == '`' || quote == '[');
Ident {
value: value.into(),
quote_style: Some(quote),
span: Span::empty(),
}
}
/// Create an `Ident` with the given `span` and `value` (unquoted).
pub fn with_span<S>(span: Span, value: S) -> Self
where
S: Into<String>,
{
Ident {