Crate gen_analyzer

Source

Modules§

style
template
value

Macros§

as_value
nom_err
parse_base_value

Structs§

CallbackFn
Else
ElseIf
EventComponent
处理带有Callbacks的Widget
IdClass
存储历史父级的id或class的节点 例如:
If
Model
GenUI文件模型
Parent
Polls
Polls
PropComponent
PropKV
PropKey
Property Key
StyleVisitor
Template
GenUI组件模型

Enums§

BuiltinProps
Comment
Prop
PropKeyType
Property Key Type
Strategy
Parse Strategy Convert ParseTarget To AST
SugarIf
SugarIter
SugarProps
GenUI组件属性的语法糖

Constants§

BUILTIN_PROPS
Builtin props

Functions§

class_value_to_string
将class的值转换为字符串
props_to_string
props_to_style_string
props_to_template_string

Type Aliases§

Binds
key: bind ident , value: bind component
Callbacks
事件回调集合
Events
组件的事件池,用于存储组件的事件,一个事件可以被多个组件绑定 目前来看通过组件为单位而不是使用类似Binds的方式来存储事件是更好的选择
PropTree
记录组件中是否有绑定的属性和事件 这个类型会记录下组件树中所有的绑定属性和事件, 使用Template.get_props_tree()获取 返回结果为双元素元组,第一个元素是绑定属性,第二个元素是绑定事件 Vec<(($widget_name, $widget_id), Some({key:PropsKey, value: Value}))>
Props
Script
Script
Style
Style
StyleVal
Style Value