Version: dev

cadence

Stable type · Runtime I/O

Tier: stable · Kind: type · Topic: Runtime I/O

JuliaTypeScriptPythonRustGo
not exportedoutside profilenot exportedCadenceCadence

Julia

Julia does not export this type.

TypeScript

Not available in TypeScript. TypeScript is outside the runtime I/O capability profile (Julia, Python, Rust): data-source providers, refresh cadence, output sinks, checkpoints.

Python

Python does not export this type.

Rust

pub enum Cadence {
    Const,
    Discrete,
    Continuous,
}

impl Cadence { pub fn as_str(self) -> &'static str }

The cadence lattice (CONFORMANCE_SPEC.md §5.7.1): const ⊏ discrete ⊏ continuous. The derived Ord is the lattice order (variants declared low-to-high), so class(node) = max over inputs is just Iterator::max.

Source · Rust docs

Go

type Cadence int
func (c Cadence) String() string

Cadence is a value’s evaluation class, forming the total order CadenceConst ⊏ CadenceDiscrete ⊏ CadenceContinuous (CONFORMANCE_SPEC §5.7.1).

Methods

func (c Cadence) String() string

String renders the class in the spelling expect_cadence and the conformance goldens use.

Source · Go docs