Rust

Procedural macros

Në shqip: Makrot procedurale

ShpjegimiSQ

Makrot procedurale janë programe Rust që shkruajnë kod Rust gjatë kompajlimit — #[derive(Serialize)] i serde-s dhe #[tokio::main] janë të tilla. Ndërtohen me crate-et syn dhe quote.

EnglishEN

Procedural macros are Rust programs that write Rust code at compile time — serde's #[derive(Serialize)] and #[tokio::main] are examples. They're built with the syn and quote crates.

Si ta mendosh

Si një robot që plotëson formularët e mërzitshëm për ty.

Lexoje në anglisht

Like a robot filling in the boring forms for you.

Terma të lidhur