Module tag

Source
Expand description

Tag combinator

Structsยง

Tag
Generic tag combinator that matches the input with a given value and discards it e.g. Tag(Int::<u8>, 0) matches the byte 0; Tag(Bytes::<3>, &[1, 2, 3]) matches the bytes [1, 2, 3]
TagPred
tag predicate that matches the input with a given value