Struct debris_hir::hir_nodes::HirVariableInitialization
source · pub struct HirVariableInitialization {
pub span: Span,
pub pattern: HirVariablePattern,
pub value: Box<HirExpression>,
pub mode: HirDeclarationMode,
}
Expand description
Sets a variable like let a = expression();
Fields§
§span: Span
§pattern: HirVariablePattern
§value: Box<HirExpression>
§mode: HirDeclarationMode
Trait Implementations§
source§impl Debug for HirVariableInitialization
impl Debug for HirVariableInitialization
source§impl PartialEq for HirVariableInitialization
impl PartialEq for HirVariableInitialization
source§fn eq(&self, other: &HirVariableInitialization) -> bool
fn eq(&self, other: &HirVariableInitialization) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HirVariableInitialization
impl StructuralEq for HirVariableInitialization
impl StructuralPartialEq for HirVariableInitialization
Auto Trait Implementations§
impl RefUnwindSafe for HirVariableInitialization
impl !Send for HirVariableInitialization
impl !Sync for HirVariableInitialization
impl Unpin for HirVariableInitialization
impl UnwindSafe for HirVariableInitialization
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.