Struct fuel_vm::predicate::RuntimePredicate
source · [−]pub struct RuntimePredicate { /* private fields */ }
Expand description
Runtime representation of a predicate
Implementations
sourceimpl RuntimePredicate
impl RuntimePredicate
sourcepub const fn program(&self) -> &MemoryRange
pub const fn program(&self) -> &MemoryRange
Memory slice with the program representation of the predicate
sourcepub fn from_tx<T>(params: &ConsensusParameters, tx: T, idx: usize) -> Option<Self> where
T: Borrow<Transaction>,
pub fn from_tx<T>(params: &ConsensusParameters, tx: T, idx: usize) -> Option<Self> where
T: Borrow<Transaction>,
Create a new runtime predicate from a transaction, given the input index
Return None
if the tx input doesn’t map to an input with a predicate
Trait Implementations
sourceimpl Clone for RuntimePredicate
impl Clone for RuntimePredicate
sourcefn clone(&self) -> RuntimePredicate
fn clone(&self) -> RuntimePredicate
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 RuntimePredicate
impl Debug for RuntimePredicate
sourceimpl Default for RuntimePredicate
impl Default for RuntimePredicate
sourcefn default() -> RuntimePredicate
fn default() -> RuntimePredicate
Returns the “default value” for a type. Read more
sourceimpl Hash for RuntimePredicate
impl Hash for RuntimePredicate
sourceimpl PartialEq<RuntimePredicate> for RuntimePredicate
impl PartialEq<RuntimePredicate> for RuntimePredicate
sourcefn eq(&self, other: &RuntimePredicate) -> bool
fn eq(&self, other: &RuntimePredicate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RuntimePredicate) -> bool
fn ne(&self, other: &RuntimePredicate) -> bool
This method tests for !=
.
impl Eq for RuntimePredicate
impl StructuralEq for RuntimePredicate
impl StructuralPartialEq for RuntimePredicate
Auto Trait Implementations
impl RefUnwindSafe for RuntimePredicate
impl Send for RuntimePredicate
impl Sync for RuntimePredicate
impl Unpin for RuntimePredicate
impl UnwindSafe for RuntimePredicate
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