pub enum AssignableValue {
Value(ValueId),
Aggregate {
lhs: Box<AssignableValue>,
idx: ValueId,
},
Map {
lhs: Box<AssignableValue>,
key: ValueId,
},
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AssignableValue
impl Clone for AssignableValue
Source§fn clone(&self) -> AssignableValue
fn clone(&self) -> AssignableValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AssignableValue
impl Debug for AssignableValue
Source§impl From<Id<Value>> for AssignableValue
impl From<Id<Value>> for AssignableValue
Source§impl Hash for AssignableValue
impl Hash for AssignableValue
Source§impl PartialEq for AssignableValue
impl PartialEq for AssignableValue
Source§impl PrettyPrint for AssignableValue
impl PrettyPrint for AssignableValue
fn pretty_print<W: Write>( &self, db: &dyn MirDb, store: &BodyDataStore, w: &mut W, ) -> Result
fn pretty_string(&self, db: &dyn MirDb, store: &BodyDataStore) -> String
impl Eq for AssignableValue
impl StructuralPartialEq for AssignableValue
Auto Trait Implementations§
impl Freeze for AssignableValue
impl RefUnwindSafe for AssignableValue
impl Send for AssignableValue
impl Sync for AssignableValue
impl Unpin for AssignableValue
impl UnwindSafe for AssignableValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.