pub enum ApChange {
Unknown,
Known(usize),
FromMetadata,
AtLocalsFinalizationByTypeSize(ConcreteTypeId),
KnownByTypeSize(ConcreteTypeId),
FunctionCall(FunctionId),
FinalizeLocals,
}
Expand description
Describes the effect on the ap
register in a given libfunc branch.
Variants§
Unknown
The libfunc changes ap
in an unknown way.
Known(usize)
The libfunc changes ap
by a known size.
FromMetadata
The libfunc changes ap
by a known size, provided in the metadata. Currently this only
includes branch_align
libfunc.
AtLocalsFinalizationByTypeSize(ConcreteTypeId)
The libfunc changes ap
by a known size, which is the size of the given type at locals
finalization stage.
KnownByTypeSize(ConcreteTypeId)
The libfunc changes ap
by a known size, which is the size of the given type.
FunctionCall(FunctionId)
The libfunc is a function call - it changes according to the given function and call cost.
FinalizeLocals
Trait Implementations§
source§impl PartialEq<ApChange> for ApChange
impl PartialEq<ApChange> for ApChange
impl Eq for ApChange
impl StructuralEq for ApChange
impl StructuralPartialEq for ApChange
Auto Trait Implementations§
impl RefUnwindSafe for ApChange
impl Send for ApChange
impl Sync for ApChange
impl Unpin for ApChange
impl UnwindSafe for ApChange
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.