pub struct ReturnItem {
pub expr: Expr,
pub alias: Option<SmallName>,
pub all: bool,
pub source_text: Option<String>,
}Expand description
A single item in a RETURN clause.
Fields§
§expr: Expr§alias: Option<SmallName>§all: bool§source_text: Option<String>Implementations§
Source§impl ReturnItem
impl ReturnItem
Sourcepub fn implicit_name(&self) -> Option<&SmallName>
pub fn implicit_name(&self) -> Option<&SmallName>
The implicit name an unaliased item carries: its bare variable, or the variable a map projection is a view of (both paren-transparent). The one derivation of the implicit-name vocabulary.
Sourcepub fn output_name(&self) -> Option<SmallName>
pub fn output_name(&self) -> Option<SmallName>
The column name the item projects: its alias, else
Self::implicit_name, else its verbatim source text. None only
for an item that carries none of the three (never a parsed one). The
one home of the output-name rule: the parser’s UNION column check and
the front’s scope passes both read it.
Trait Implementations§
Source§impl Clone for ReturnItem
impl Clone for ReturnItem
Source§impl Debug for ReturnItem
impl Debug for ReturnItem
Source§impl PartialEq for ReturnItem
impl PartialEq for ReturnItem
impl StructuralPartialEq for ReturnItem
Auto Trait Implementations§
impl Forget for ReturnItem
impl Freeze for ReturnItem
impl Move for ReturnItem
impl RefUnwindSafe for ReturnItem
impl Send for ReturnItem
impl Sync for ReturnItem
impl Unpin for ReturnItem
impl UnsafeUnpin for ReturnItem
impl UnwindSafe for ReturnItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more