pub struct YieldItem {
pub name: SmallName,
pub alias: Option<SmallName>,
}Expand description
One YIELD <name> [AS <alias>] item of a procedure call or catalog
command. alias is None when no AS was written, so “no alias” is
represented by the optional itself rather than an empty-string sentinel
in a parallel array.
Fields§
§name: SmallName§alias: Option<SmallName>Implementations§
Source§impl YieldItem
impl YieldItem
Sourcepub fn effective_name(&self) -> SmallName
pub fn effective_name(&self) -> SmallName
The name this item binds in the enclosing scope: the alias when one
was written, else the yielded column name. A SmallName copy (the
inline arm is a u64 move, the spilled arm a refcount bump,
ADR-0509 §1) — consumers bridging into a String-keyed scope map
pay the text conversion at that one feed site.
Trait Implementations§
impl Eq for YieldItem
impl StructuralPartialEq for YieldItem
Auto Trait Implementations§
impl Forget for YieldItem
impl Freeze for YieldItem
impl Move for YieldItem
impl RefUnwindSafe for YieldItem
impl Send for YieldItem
impl Sync for YieldItem
impl Unpin for YieldItem
impl UnsafeUnpin for YieldItem
impl UnwindSafe for YieldItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.