pub struct CheckedExpression<'e, 'a> { /* private fields */ }Expand description
One expression occurrence with a lookup of the records the checker published for it.
Implementations§
Source§impl<'a> CheckedExpression<'_, 'a>
impl<'a> CheckedExpression<'_, 'a>
Sourcepub fn value_use(&self) -> &'a CheckedValueUse
pub fn value_use(&self) -> &'a CheckedValueUse
The adaptation that the checker decided for this value into its slot.
Sourcepub fn cast_operand(&self) -> &'a CheckedValueUse
pub fn cast_operand(&self) -> &'a CheckedValueUse
The operand of this cast, converted to the cast type.
Sourcepub fn propagated_error(&self) -> Option<&'a CheckedValueUse>
pub fn propagated_error(&self) -> Option<&'a CheckedValueUse>
The error that a ? on this operand returns, converted to the error slot of its function or try block.
Sourcepub fn receiver_change(&self) -> Option<ReceiverCoercion>
pub fn receiver_change(&self) -> Option<ReceiverCoercion>
The reference change that this method receiver takes, as the checker recorded it.
Sourcepub fn callee(&self) -> &'a CheckedCallee
pub fn callee(&self) -> &'a CheckedCallee
The operation and type arguments that the checker selected for this callee.
Sourcepub fn function_value(&self) -> Option<&'a CheckedCallee>
pub fn function_value(&self) -> Option<&'a CheckedCallee>
The definition and type arguments of this function value, or None when the checker records none for it.
Sourcepub fn equality(&self) -> Option<&'a EqualityRecipe>
pub fn equality(&self) -> Option<&'a EqualityRecipe>
The equality that this comparison tests with, as the checker selected it, or None when it selects none.
Sourcepub fn implicit_unit(&self) -> Option<ExpressionId>
pub fn implicit_unit(&self) -> Option<ExpressionId>
The unit value that this if let produces when its pattern does not match, or None when it has an else.