Skip to main content

Module decode

Module decode 

Source
Available on crate feature parser only.
Expand description

§Decode (syntax to model)

The read side of the structural bridge: project a raw syntax tree onto the decoded model. A IcalValueNode decodes its components, a IcalParamNode decodes into a IcalParam, a IcalLine decodes into a IcalProp, and a IcalCst decodes into a whole Ical (recursively, walking every nested component).

A property’s value kind is resolved through its spec, not a name match: IcalLine::decode maps the name to a IcalPropKind, asks the spec for the in-force value kind (version plus any declared VALUE), then routes to that kind’s decoder. The parameter name dispatch is the match in IcalParamNode::decode.