HugrSumType

Type Alias HugrSumType 

Source
pub type HugrSumType = SumType;
Expand description

A type alias for a hugr sum type.

Aliased Type§

pub enum HugrSumType {
    Unit {
        size: u8,
    },
    General {
        rows: Vec<TypeRowBase<RowVariable>>,
    },
}

Variants§

§

Unit

Special case of a Sum over unit types.

Fields

§size: u8
§

General

General case of a Sum type.