pub struct YieldList {
pub items: Vec<YieldItem>,
pub all: bool,
}Expand description
A clause’s YIELD tail, modeled once: the explicit items in source
order plus whether YIELD * was written. Empty items with all == false means no YIELD at all (the grammar never reads an empty
explicit list).
Fields§
§items: Vec<YieldItem>§all: boolImplementations§
Source§impl YieldList
impl YieldList
Sourcepub fn names(&self) -> impl Iterator<Item = &SmallName>
pub fn names(&self) -> impl Iterator<Item = &SmallName>
Each item’s raw yielded name, in source order.
Sourcepub fn pairs(
&self,
) -> impl Iterator<Item = (&SmallName, Option<&SmallName>, SmallName)>
pub fn pairs( &self, ) -> impl Iterator<Item = (&SmallName, Option<&SmallName>, SmallName)>
Each item’s raw name, optional alias, and effective (post-alias) name, in source order. Consumers that need both sides of the alias rule read them from this one iterator instead of re-deriving the precedence.
Sourcepub fn effective_names(&self) -> impl Iterator<Item = SmallName> + '_
pub fn effective_names(&self) -> impl Iterator<Item = SmallName> + '_
Each item’s effective (post-alias) name, in source order.
Trait Implementations§
impl Eq for YieldList
impl StructuralPartialEq for YieldList
Auto Trait Implementations§
impl Forget for YieldList
impl Freeze for YieldList
impl Move for YieldList
impl RefUnwindSafe for YieldList
impl Send for YieldList
impl Sync for YieldList
impl Unpin for YieldList
impl UnsafeUnpin for YieldList
impl UnwindSafe for YieldList
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.