Trait rgbstd::schema::OpSchema

source ·
pub trait OpSchema {
    // Required methods
    fn op_type(&self) -> OpType;
    fn metadata(&self) -> SemId;
    fn globals(
        &self
    ) -> &Confined<BTreeMap<u16, Occurrences, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>;
    fn inputs(
        &self
    ) -> Option<&Confined<BTreeMap<u16, Occurrences, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>>;
    fn redeems(
        &self
    ) -> Option<&Confined<BTreeSet<u16, Global>, amplify::::collection::confinement::TinyOrdSet::{constant#0}, amplify::::collection::confinement::TinyOrdSet::{constant#1}>>;
    fn assignments(
        &self
    ) -> &Confined<BTreeMap<u16, Occurrences, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>;
    fn valencies(
        &self
    ) -> &Confined<BTreeSet<u16, Global>, amplify::::collection::confinement::TinyOrdSet::{constant#0}, amplify::::collection::confinement::TinyOrdSet::{constant#1}>;
}
Expand description

Trait defining common API for all operation type schemata

Required Methods§

source

fn op_type(&self) -> OpType

source

fn metadata(&self) -> SemId

source

fn globals( &self ) -> &Confined<BTreeMap<u16, Occurrences, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>

source

fn inputs( &self ) -> Option<&Confined<BTreeMap<u16, Occurrences, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>>

source

fn redeems( &self ) -> Option<&Confined<BTreeSet<u16, Global>, amplify::::collection::confinement::TinyOrdSet::{constant#0}, amplify::::collection::confinement::TinyOrdSet::{constant#1}>>

source

fn assignments( &self ) -> &Confined<BTreeMap<u16, Occurrences, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>

source

fn valencies( &self ) -> &Confined<BTreeSet<u16, Global>, amplify::::collection::confinement::TinyOrdSet::{constant#0}, amplify::::collection::confinement::TinyOrdSet::{constant#1}>

Implementors§