forml.io.dsl.Struct

class forml.io.dsl.Struct(**element)[source]

Struct data type class.

Abstract constructor.

Parameters

element (forml.io.dsl._struct.kind.Any) –

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

ensure(kind)

Ensure given kind is of our type.

index(value[, start, stop])

Return first index of value.

match(kind)

Check given kind is of our type.