Struct debris_hir::hir_nodes::HirStructInitialization
source · pub struct HirStructInitialization {
pub span: Span,
pub base: Box<HirExpression>,
pub values: Vec<(SpannedIdentifier, HirExpression)>,
}
Expand description
Creates a Struct Object from a struct
Fields§
§span: Span
§base: Box<HirExpression>
§values: Vec<(SpannedIdentifier, HirExpression)>
Trait Implementations§
source§impl Debug for HirStructInitialization
impl Debug for HirStructInitialization
source§impl PartialEq for HirStructInitialization
impl PartialEq for HirStructInitialization
source§fn eq(&self, other: &HirStructInitialization) -> bool
fn eq(&self, other: &HirStructInitialization) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HirStructInitialization
impl StructuralEq for HirStructInitialization
impl StructuralPartialEq for HirStructInitialization
Auto Trait Implementations§
impl RefUnwindSafe for HirStructInitialization
impl !Send for HirStructInitialization
impl !Sync for HirStructInitialization
impl Unpin for HirStructInitialization
impl UnwindSafe for HirStructInitialization
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.