pub struct ValueUseKey { /* private fields */ }Expand description
Names one value use: the occurrence that produces the value, and its role.
Implementations§
Source§impl ValueUseKey
impl ValueUseKey
Sourcepub fn value(expression: &Expression) -> Self
pub fn value(expression: &Expression) -> Self
The value of expression where it goes into its slot.
pub fn value_id(expression: ExpressionId) -> Self
Sourcepub fn propagated_error(operand: &Expression) -> Self
pub fn propagated_error(operand: &Expression) -> Self
The error that the ? applied to operand returns from its function or try block.
Sourcepub fn expression(&self) -> ExpressionId
pub fn expression(&self) -> ExpressionId
The occurrence that produces the value.
Sourcepub fn cast_operand(cast: ExpressionId) -> Self
pub fn cast_operand(cast: ExpressionId) -> Self
The operand of the cast with the occurrence cast, converted to the cast type.
Trait Implementations§
Source§impl Clone for ValueUseKey
impl Clone for ValueUseKey
impl Copy for ValueUseKey
Source§impl Debug for ValueUseKey
impl Debug for ValueUseKey
impl Eq for ValueUseKey
Source§impl Hash for ValueUseKey
impl Hash for ValueUseKey
Source§impl PartialEq for ValueUseKey
impl PartialEq for ValueUseKey
impl StructuralPartialEq for ValueUseKey
Auto Trait Implementations§
impl Forget for ValueUseKey
impl Freeze for ValueUseKey
impl Move for ValueUseKey
impl RefUnwindSafe for ValueUseKey
impl Send for ValueUseKey
impl Sync for ValueUseKey
impl Unpin for ValueUseKey
impl UnsafeUnpin for ValueUseKey
impl UnwindSafe for ValueUseKey
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