Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 581 Bytes

macro-to-string.md

File metadata and controls

20 lines (15 loc) · 581 Bytes
title timestamp author published description tags
Macro to_string
2024-01-17 01:30:01 -0800
szabgab
true
Sometimes I get tired typing in to_string, especially in test cases so I wrote this macro.
macro_rules!
macro
to_string

Sometimes I get tired typing in to_string, especially in test cases so I wrote this macro.

{% include file="examples/macro-to-string/src/main.rs" %}

I am a bit ambivalent as I don't like one-letter variables or functions name, but I want this to be short.

An besides I can search for s! if I am looking for all the uses.