Struct debris_hir::hir_nodes::HirVariableUpdate
source · pub struct HirVariableUpdate {
pub span: Span,
pub pattern: HirVariablePattern,
pub value: Box<HirExpression>,
}
Expand description
Similar to HirVariableInitialization
, however this node
marks a write to an already initialized value
Fields§
§span: Span
§pattern: HirVariablePattern
§value: Box<HirExpression>
Trait Implementations§
source§impl Debug for HirVariableUpdate
impl Debug for HirVariableUpdate
source§impl PartialEq for HirVariableUpdate
impl PartialEq for HirVariableUpdate
source§fn eq(&self, other: &HirVariableUpdate) -> bool
fn eq(&self, other: &HirVariableUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HirVariableUpdate
impl StructuralEq for HirVariableUpdate
impl StructuralPartialEq for HirVariableUpdate
Auto Trait Implementations§
impl RefUnwindSafe for HirVariableUpdate
impl !Send for HirVariableUpdate
impl !Sync for HirVariableUpdate
impl Unpin for HirVariableUpdate
impl UnwindSafe for HirVariableUpdate
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.