touch_grass/interface
Types
pub type Interface(t, a, b) {
Interface(
name: String,
lift_type: isomorphic.Type(Int),
lower_type: isomorphic.Type(Int),
decode: fn(value.Value(a, b)) -> Result(t, break.Reason(a, b)),
)
}
Constructors
-
Interface( name: String, lift_type: isomorphic.Type(Int), lower_type: isomorphic.Type(Int), decode: fn(value.Value(a, b)) -> Result(t, break.Reason(a, b)), )