pub struct CoalesceChain {
pub steps: Vec<CoalesceStep>,
}Expand description
Every step of one or-coalescing chain, innermost first.
a or b or c records two steps: [a or b, (that) or c]. A consumer
walking the HIR meets the chain root first and descends its left
spine, so it consumes this vector back-to-front; the order is fixed
here (and only here) so producer and consumer cannot drift.
Fields§
§steps: Vec<CoalesceStep>The chain’s steps, innermost first. Never empty.
Trait Implementations§
Source§impl Clone for CoalesceChain
impl Clone for CoalesceChain
Source§fn clone(&self) -> CoalesceChain
fn clone(&self) -> CoalesceChain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoalesceChain
impl Debug for CoalesceChain
impl Eq for CoalesceChain
Source§impl PartialEq for CoalesceChain
impl PartialEq for CoalesceChain
impl StructuralPartialEq for CoalesceChain
Auto Trait Implementations§
impl Freeze for CoalesceChain
impl RefUnwindSafe for CoalesceChain
impl Send for CoalesceChain
impl Sync for CoalesceChain
impl Unpin for CoalesceChain
impl UnsafeUnpin for CoalesceChain
impl UnwindSafe for CoalesceChain
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§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.