Expand description
The module associated with the @/${zenoh_id:*}/ros2/
format, it contains:
Format
, a zero-sized type that represents your format.formatter()
, a function that constructs aFormatter
specialized for your format:- for every spec in your format,
Formatter
will have a method named after the spec’sid
that lets you set a value for that field of your format. These methods will returnResult<&mut Formatter, FormatError>
.
- for every spec in your format,
parse(target: &keyexpr) -> ZResult<Parsed<'_>>
will parse the provided key expression according to your format. Just likeKeFormat::parse
, parsing is lazy: each field will match the smallest subsection of yourtarget
that is included in its pattern.- like
Formatter
,Parsed
will have a method named after each spec’sid
that returns&keyexpr
; except for specs whose pattern was**
, these will return anOption<&keyexpr>
, whereNone
signifies that the pattern was matched by an empty list of chunks.
- like
Structs§
- Format
- The
@/${zenoh_id:*}/ros2/
format, as a zero-sized-type. - Formatter
- And instance of a formatter for
@/${zenoh_id:*}/ros2/
. - Parsed