Skip to main content

Module cursor

Module cursor 

Source
Available on crate feature parser only.
Expand description

§Value cursor

The in-place edit cursor every property lens uses.

A cursor borrows a content line mutably and reads and writes its value through the codec: getters decode (unescape), setters encode (escape) and write through to the syntax node.

A setter only rewrites the component it touches, so every other leaf (and every parameter) of a parsed line stays byte for byte intact.

IcalValueCursor offers convenience accessors for the common single-value and list shapes, plus component-level access for the structured values (GEO, REQUEST-STATUS).

Beside the UTF-8 text accessors it offers a raw byte hatch (bytes / set_bytes) for a value in a foreign charset.

Behind the content-encoding features sit the quoted_printable and charset decoders.

Structs§

IcalValueCursor
A typed cursor over a content line’s value, editing in place and byte preserving for the components it does not touch.