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: SignatureTokenRepresents the type of the value
abilities: AbilitySetRepresents the abilities of the value
Implementations
sourceimpl 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
sourceimpl Clone for AbstractValue
impl Clone for AbstractValue
sourcefn clone(&self) -> AbstractValue
fn clone(&self) -> AbstractValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AbstractValue
impl Debug for AbstractValue
sourceimpl Display for AbstractValue
impl Display for AbstractValue
sourceimpl PartialEq<AbstractValue> for AbstractValue
impl PartialEq<AbstractValue> for AbstractValue
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &AbstractValue) -> bool
fn ne(&self, other: &AbstractValue) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more