Hardcaml_waveterm_kernel.Display_ruleSourceA Rule.t is a predicate on Port.ts that specifies the display format of matching ports.
type t = | Default| Regexp of {re : Re.re;wave_format : Wave_format.t;alignment : Text_alignment.t;}| Names of {names : Hardcaml_waveterm_kernel__.Port_name.t Base.list;wave_format : Wave_format.t;alignment : Text_alignment.t;}| Custom of Hardcaml_waveterm_kernel__.Port.t -> Wave_format.t Base.option| Custom_with_alignment of Hardcaml_waveterm_kernel__.Port.t ->
(Wave_format.t * Text_alignment.t) Base.optionval port_name_matches :
?alignment:Text_alignment.t ->
Re.re ->
wave_format:Wave_format.t ->
tUse given format for ports whose name match the regular expression re.
val port_name_is :
?alignment:Text_alignment.t ->
Base.string ->
wave_format:Wave_format.t ->
tUse format for ports with given name.
val port_name_is_one_of :
?alignment:Text_alignment.t ->
wave_format:Wave_format.t ->
Base.string Base.list ->
tMatch any one of a list of names.
In custom f, f returns None to signify no match, or Some format to specify a display format.
val custom_with_alignment :
f:
(Hardcaml_waveterm_kernel__.Port.t ->
(Wave_format.t * Text_alignment.t) Base.option) ->
tSimilar tp f, but allows the user to specify the alignment of the wave.
val states :
?onehot:Base.bool ->
?alignment:Text_alignment.t ->
(module States) ->
Base.string ->
tFor use with statemachines. Derives state names from the variant describing the states of the state machine.