StackOverflow Questions for Tag: rust-decl-macros

Caspar
Caspar

Reputation: 7759

How do I see the expanded macro code that's causing my compile error?

Score: 104

Views: 54313

Answers: 6

Read More
Eray Erdin
Eray Erdin

Reputation: 3179

How do I early return in declarative macros and infer the return type?

Score: 1

Views: 785

Answers: 2

Read More
Alexander Kudzin
Alexander Kudzin

Reputation: 13

Tuple indexing in macro

Score: 0

Views: 1908

Answers: 4

Read More
Zach
Zach

Reputation: 5895

How to concat two variables to create an identifier in a declarative macro?

Score: 1

Views: 1544

Answers: 1

Read More
Shepmaster
Shepmaster

Reputation: 432139

How can I generate trait bounds in a declarative macro?

Score: 6

Views: 1518

Answers: 2

Read More
Silly Freak
Silly Freak

Reputation: 4231

Is there a way to "do macro stuff" in an attribute without a procedural macro?

Score: 1

Views: 1107

Answers: 1

Read More
litchipi
litchipi

Reputation: 53

How do I generate a macro from previous macro-generated code?

Score: 1

Views: 274

Answers: 1

Read More
codearm
codearm

Reputation: 215

How can I operate on pairs of arguments to macro_rules?

Score: 0

Views: 1208

Answers: 2

Read More
user318904
user318904

Reputation: 3076

How do I get an identifer from an expression argument in a macro?

Score: 1

Views: 1292

Answers: 2

Read More
Kofi
Kofi

Reputation: 645

Is there a way to pass a function as a parameter of a macro?

Score: 1

Views: 960

Answers: 1

Read More
lolad
lolad

Reputation: 321

How do I detect if an optional keyword was supplied to a declarative macro?

Score: 2

Views: 432

Answers: 0

Read More
Wakan Tanka
Wakan Tanka

Reputation: 8052

How to write a macro that displays the file and line number and a variable number of arguments?

Score: 7

Views: 4488

Answers: 1

Read More
Dincio
Dincio

Reputation: 1082

Use local bindings at call site in Rust "macro_rules" macros

Score: 1

Views: 781

Answers: 2

Read More
knh190
knh190

Reputation: 2882

How do I use Rust macros in the same crate?

Score: 0

Views: 53

Answers: 0

Read More
Peter Hall
Peter Hall

Reputation: 58875

What does an @ symbol mean in a Rust declarative macro?

Score: 14

Views: 3696

Answers: 1

Read More
HentaiMew
HentaiMew

Reputation: 337

Generate attribute value via macro

Score: 1

Views: 531

Answers: 1

Read More
Shmoopy
Shmoopy

Reputation: 5534

Can I define a macro which will expand into a function call?

Score: 0

Views: 343

Answers: 1

Read More
noconst
noconst

Reputation: 679

How to implement a macro that defines a new public type and returns an instance of that type?

Score: 1

Views: 555

Answers: 1

Read More
Inline
Inline

Reputation: 2863

How to match a trait in a Rust macro?

Score: 2

Views: 2097

Answers: 1

Read More
Eugene Sh.
Eugene Sh.

Reputation: 18381

Macro to build enum with different "kinds" of elements

Score: 0

Views: 523

Answers: 2

Read More
PreviousPage 1Next