pub struct MemContract<M = MemContractState>where
M: Borrow<MemContractState>,{ /* private fields */ }Trait Implementations§
Source§impl<M> ContractStateAccess for MemContract<M>where
M: Borrow<MemContractState>,
impl<M> ContractStateAccess for MemContract<M>where
M: Borrow<MemContractState>,
fn global( &self, ty: GlobalStateType, ) -> Result<impl GlobalsIter, UnknownGlobalStateType>
fn rights(&self, outpoint: OutPoint, ty: AssignmentType) -> u32
fn fungible( &self, outpoint: OutPoint, ty: AssignmentType, ) -> impl DoubleEndedIterator
fn data( &self, outpoint: OutPoint, ty: AssignmentType, ) -> impl DoubleEndedIterator
Source§impl ContractStateEvolve for MemContract
impl ContractStateEvolve for MemContract
type Context<'ctx> = (&'ctx Schema, ContractId)
type Error = MemError
fn init( context: <MemContract as ContractStateEvolve>::Context<'_>, ) -> MemContract
fn evolve_state( &mut self, op: OrdOpRef<'_>, ) -> Result<(), <MemContract as ContractStateEvolve>::Error>
Source§impl<M> ContractStateRead for MemContract<M>where
M: Borrow<MemContractState>,
impl<M> ContractStateRead for MemContract<M>where
M: Borrow<MemContractState>,
fn contract_id(&self) -> ContractId
fn schema_id(&self) -> SchemaId
fn witness_ord(&self, witness_id: Txid) -> Option<WitnessOrd>
fn rights_all(&self) -> impl Iterator<Item = &OutputAssignment<VoidState>>
fn fungible_all(&self) -> impl Iterator<Item = &OutputAssignment<RevealedValue>>
fn data_all(&self) -> impl Iterator<Item = &OutputAssignment<RevealedData>>
Auto Trait Implementations§
impl<M> Freeze for MemContract<M>where
M: Freeze,
impl<M> RefUnwindSafe for MemContract<M>where
M: RefUnwindSafe,
impl<M> Send for MemContract<M>where
M: Send,
impl<M> Sync for MemContract<M>where
M: Sync,
impl<M> Unpin for MemContract<M>where
M: Unpin,
impl<M> UnwindSafe for MemContract<M>where
M: UnwindSafe,
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