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