Module swc_macros_common::prelude
source · [−]Re-exports
pub use super::binder::BindedField;
pub use super::binder::Binder;
pub use super::binder::VariantBinder;
pub use super::call_site;
pub use super::def_site;
pub use super::derive::Derive;
pub use super::doc_str;
pub use super::is_attr_name;
pub use super::print;
Structs
A delimited token stream.
A literal string (
"hello"
), byte string (b"hello"
), character ('a'
),
byte character (b'a'
), an integer or floating point number with or without
a suffix (1
, 1u8
, 2.3
, 2.3f32
).A
Punct
is a single punctuation character like +
, -
or #
.A punctuated sequence of syntax tree nodes of type
T
separated by
punctuation of type P
.A region of source code, along with macro expansion information.
An abstract stream of tokens, or more concretely a sequence of token trees.
Enums
Describes how a sequence of token trees is delimited.
A single syntax tree node of type
T
followed by its trailing punctuation
of type P
if any.A single token or a delimited sequence of token trees (e.g.
[1, (), ..]
).Traits
Extension trait for
ItemImpl
(impl block).Types that can be interpolated inside a
quote!
invocation.