All Projects → ct-austin → Ifmt

ct-austin / Ifmt

Licence: other
Inline expression interpolation for Rust.

Programming Languages

rust
11053 projects
macro
33 projects

Projects that are alternatives of or similar to Ifmt

Kite
🪁 Android Resources Wrapper Library
Stars: ✭ 127 (-35.53%)
Mutual labels:  strings
Es6
ES5 vs ES6 Reference
Stars: ✭ 158 (-19.8%)
Mutual labels:  syntax
L10n Swift
Localization of the application with ability to change language "on the fly" and support for plural form in any language.
Stars: ✭ 177 (-10.15%)
Mutual labels:  strings
Guide To Swift Strings Sample Code
Xcode Playground Sample Code for the Flight School Guide to Swift Strings
Stars: ✭ 136 (-30.96%)
Mutual labels:  strings
Flare Floss
FLARE Obfuscated String Solver - Automatically extract obfuscated strings from malware.
Stars: ✭ 2,020 (+925.38%)
Mutual labels:  strings
React Ast
render abstract syntax trees with react
Stars: ✭ 160 (-18.78%)
Mutual labels:  syntax
Java Ds Algorithms
Data Structures and Algorithms in Java
Stars: ✭ 125 (-36.55%)
Mutual labels:  strings
String Similarity
Finds degree of similarity between two strings, based on Dice's Coefficient, which is mostly better than Levenshtein distance.
Stars: ✭ 2,254 (+1044.16%)
Mutual labels:  strings
Burrido
Do-notation for JavaScript
Stars: ✭ 150 (-23.86%)
Mutual labels:  syntax
Lexical syntax analysis
编译原理词法分析器&语法分析器LR(1)实现 C++
Stars: ✭ 173 (-12.18%)
Mutual labels:  syntax
Lightscript
JavaScript, with cleaned-up syntax and a few conveniences.
Stars: ✭ 141 (-28.43%)
Mutual labels:  syntax
Udify
A single model that parses Universal Dependencies across 75 languages. Given a sentence, jointly predicts part-of-speech tags, morphology tags, lemmas, and dependency trees.
Stars: ✭ 147 (-25.38%)
Mutual labels:  syntax
Blog
Our open source benchmarks and code samples
Stars: ✭ 162 (-17.77%)
Mutual labels:  strings
Elf Strings
elf-strings will programmatically read an ELF binary's string sections within a given binary. This is meant to be much like the strings UNIX utility, however is purpose built for ELF binaries.
Stars: ✭ 127 (-35.53%)
Mutual labels:  strings
Vue Highlight.js
📜 Highlight.js syntax highlighter component for Vue.
Stars: ✭ 180 (-8.63%)
Mutual labels:  syntax
Es.next.syntax.vim
ES.Next syntax for Vim
Stars: ✭ 125 (-36.55%)
Mutual labels:  syntax
Str
str: yet another string library for C language.
Stars: ✭ 159 (-19.29%)
Mutual labels:  strings
Phpgrep
Syntax-aware grep for PHP code.
Stars: ✭ 185 (-6.09%)
Mutual labels:  syntax
Stringz
💯 Super fast unicode-aware string manipulation Javascript library
Stars: ✭ 181 (-8.12%)
Mutual labels:  strings
Command
A library to build command line applications using PHP
Stars: ✭ 164 (-16.75%)
Mutual labels:  syntax

ifmt

A small crate which brings inline string interpolation to rust's standard formatting macros.

Getting started

To use ifmt in your project, add

[dependencies]
ifmt = "0.3.3"

to your Cargo.toml.

Examples

let four = 4;
iprintln!("four plus four is: " four + 4);
// four plus four is: 8
iprintln!("here's a hex number: 0x" 0xb0bi64 * 1321517i64 ;x);
// here's a hex number: 0xdeadbeef
iprintln!("here's a debugging value: " Some(four);?);
// here's a debugging value: Some(4)

Supported macros

format!      -> iformat!
print!       -> iprint!
println!     -> iprintln!
eprint!      -> ieprint!
eprintln!    -> ieprintln!
write!       -> iwrite!
writeln!     -> iwriteln!
panic!       -> ipanic!
format_args! -> iformat_args!

License

This project is licensed under the MIT license or the Apache 2.0 license at your option.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].