pub struct CoalesceStep {
pub lhs: Ty,
pub rhs: Ty,
pub result: Ty,
pub shape: CoalesceShape,
}Expand description
The recorded types of one or step, in the left-associative order the
grammar builds.
Fields§
§lhs: TyThe left-hand type. For the innermost step this is the classified
operand; for every later step it is the previous step’s result.
rhs: TyThe fallback operand’s classified type.
result: Tyinfer::ty::coalesce(lhs, rhs) — the step’s value type.
shape: CoalesceShapeThe shape Self::result implies for a consumer.
Trait Implementations§
Source§impl Clone for CoalesceStep
impl Clone for CoalesceStep
Source§fn clone(&self) -> CoalesceStep
fn clone(&self) -> CoalesceStep
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 CoalesceStep
impl Debug for CoalesceStep
impl Eq for CoalesceStep
Source§impl PartialEq for CoalesceStep
impl PartialEq for CoalesceStep
impl StructuralPartialEq for CoalesceStep
Auto Trait Implementations§
impl Freeze for CoalesceStep
impl RefUnwindSafe for CoalesceStep
impl Send for CoalesceStep
impl Sync for CoalesceStep
impl Unpin for CoalesceStep
impl UnsafeUnpin for CoalesceStep
impl UnwindSafe for CoalesceStep
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.