Module compat_syn_2

Module compat_syn_2 

Source
Expand description

Definitions for compatibility with syn 2

This, along with compat_syn_1.rs and compat_syn_common exists to minimise the delta in the commit which switches to syn 2.

This approach would also allow us to support both syn 1 and syn 2, and correspondingly reduce our MSRV back to 1.54, eg via cargo features, if that turns out to be desirable.

Structs§

DelimSpan
An object that holds a Group’s span_open() and span_close() together in a more compact representation than holding those 2 spans individually.

Traits§

Spanned
Local version of Spanned