ContractStateAccess

Trait ContractStateAccess 

Source
pub trait ContractStateAccess: Debug {
    // Required methods
    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;
}

Required Methods§

Source

fn global( &self, ty: GlobalStateType, ) -> Result<impl GlobalsIter, UnknownGlobalStateType>

Source

fn rights(&self, outpoint: OutPoint, ty: AssignmentType) -> u32

Source

fn fungible( &self, outpoint: OutPoint, ty: AssignmentType, ) -> impl DoubleEndedIterator

Source

fn data( &self, outpoint: OutPoint, ty: AssignmentType, ) -> impl DoubleEndedIterator

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§