pub enum OrdOpRef<'op> {
Genesis(&'op Genesis),
Transition(&'op Transition, Txid, WitnessOrd, BundleId),
}
Expand description
The type is used during validation and computing a contract state. It
combines both the operation with the information required for its ordering
in the contract history (via construction of OpOrd
) according to the
consensus rules.
Variants§
Genesis(&'op Genesis)
Transition(&'op Transition, Txid, WitnessOrd, BundleId)
Implementations§
Trait Implementations§
Source§impl<'op> Operation for OrdOpRef<'op>
impl<'op> Operation for OrdOpRef<'op>
Source§fn full_type(&self) -> OpFullType
fn full_type(&self) -> OpFullType
Returns full contract operation type information
Source§fn contract_id(&self) -> ContractId
fn contract_id(&self) -> ContractId
Returns
ContractId
this operation belongs to.Source§fn globals(&self) -> &GlobalState
fn globals(&self) -> &GlobalState
Returns reference to a full set of metadata (in form of
GlobalState
wrapper structure) for the contract operation.fn assignments(&self) -> AssignmentsRef<'op>
fn assignments_by_type( &self, t: AssignmentType, ) -> Option<TypedAssigns<GraphSeal>>
Source§fn disclose(&self) -> OpDisclose
fn disclose(&self) -> OpDisclose
Provides summary about parts of the operation which are revealed.
fn disclose_hash(&self) -> DiscloseHash
Source§impl Ord for OrdOpRef<'_>
impl Ord for OrdOpRef<'_>
Source§impl PartialOrd for OrdOpRef<'_>
impl PartialOrd for OrdOpRef<'_>
impl<'op> Copy for OrdOpRef<'op>
impl<'op> Eq for OrdOpRef<'op>
impl<'op> StructuralPartialEq for OrdOpRef<'op>
Auto Trait Implementations§
impl<'op> Freeze for OrdOpRef<'op>
impl<'op> RefUnwindSafe for OrdOpRef<'op>
impl<'op> Send for OrdOpRef<'op>
impl<'op> Sync for OrdOpRef<'op>
impl<'op> Unpin for OrdOpRef<'op>
impl<'op> UnwindSafe for OrdOpRef<'op>
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.