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§
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
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.