Struct test_generation::abstract_state::AbstractValue
source · pub struct AbstractValue {
pub token: SignatureToken,
pub abilities: AbilitySet,
}
Expand description
This models a value on the stack or in the locals
Fields§
§token: SignatureToken
Represents the type of the value
abilities: AbilitySet
Represents the abilities of the value
Implementations§
source§impl AbstractValue
impl AbstractValue
sourcepub fn new_primitive(token: SignatureToken) -> AbstractValue
pub fn new_primitive(token: SignatureToken) -> AbstractValue
Create a new primitive AbstractValue
given its type; the kind will be Copyable
sourcepub fn new_reference(
token: SignatureToken,
abilities: AbilitySet
) -> AbstractValue
pub fn new_reference( token: SignatureToken, abilities: AbilitySet ) -> AbstractValue
Create a new reference AbstractValue
given its type and kind
sourcepub fn new_struct(token: SignatureToken, abilities: AbilitySet) -> AbstractValue
pub fn new_struct(token: SignatureToken, abilities: AbilitySet) -> AbstractValue
Create a new struct AbstractValue
given its type and kind
pub fn new_value(token: SignatureToken, abilities: AbilitySet) -> AbstractValue
sourcepub fn is_generic(&self) -> bool
pub fn is_generic(&self) -> bool
Predicate on whether the type of the abstract value is generic – it is if it contains a type parameter.
Trait Implementations§
source§impl Clone for AbstractValue
impl Clone for AbstractValue
source§fn clone(&self) -> AbstractValue
fn clone(&self) -> AbstractValue
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 AbstractValue
impl Debug for AbstractValue
source§impl Display for AbstractValue
impl Display for AbstractValue
source§impl PartialEq<AbstractValue> for AbstractValue
impl PartialEq<AbstractValue> for AbstractValue
source§fn eq(&self, other: &AbstractValue) -> bool
fn eq(&self, other: &AbstractValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AbstractValue
impl StructuralEq for AbstractValue
impl StructuralPartialEq for AbstractValue
Auto Trait Implementations§
impl RefUnwindSafe for AbstractValue
impl Send for AbstractValue
impl Sync for AbstractValue
impl Unpin for AbstractValue
impl UnwindSafe for AbstractValue
Blanket Implementations§
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.