macro_rules! make_scoped_triple_streaming_mode {
($(#[$attrs: meta])* $mode: ident, $tt: ident) => { ... };
}
Expand description
Create a [streaming mode] for lifetime-parameterized Triple types.
This macro expects two identifiers:
- the first one (
$mode
) will be the identifier of the streaming mode; - the second one (
$tt
) is the name of a generic type implementingTriple
, and expecting a single lifetime parameter.
It declares the streaming mode type $mode
,
and add an associated function namedscoped
to StreamedTriple<'a, $mode>
,
to convert an instance of $tt<'a>
to a streamed triple.