pub enum OpRef<'op> {
Genesis(&'op Genesis),
Transition(&'op Transition),
}
Variants§
Genesis(&'op Genesis)
Transition(&'op Transition)
Trait Implementations§
Source§impl<'op> From<&'op Transition> for OpRef<'op>
impl<'op> From<&'op Transition> for OpRef<'op>
Source§fn from(v: &'op Transition) -> Self
fn from(v: &'op Transition) -> Self
Converts to this type from the input type.
Source§impl<'op> Operation for OpRef<'op>
impl<'op> Operation for OpRef<'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
impl<'op> Copy for OpRef<'op>
impl<'op> Eq for OpRef<'op>
impl<'op> StructuralPartialEq for OpRef<'op>
Auto Trait Implementations§
impl<'op> Freeze for OpRef<'op>
impl<'op> RefUnwindSafe for OpRef<'op>
impl<'op> Send for OpRef<'op>
impl<'op> Sync for OpRef<'op>
impl<'op> Unpin for OpRef<'op>
impl<'op> UnwindSafe for OpRef<'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> 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.