macro_rules! make_scoped_quad_streaming_mode {
($(#[$attrs: meta])* $mode: ident, $qt: ident) => { ... };
}
Expand description
Create a streaming mode for lifetime-parameterized Quad 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 implementingQuad
, and expecting a single lifetime parameter.
It declares the streaming mode type $mode
,
and add an associated function namedscoped
to StreamedQuad<'a, $mode>
,
to convert an instance of $tt<'a>
to a streamed quad.