All Projects → harryfei → Sugar Rs

harryfei / Sugar Rs

Rust syntax sugar collections.

Programming Languages

rust
11053 projects
macro
33 projects

Labels

Projects that are alternatives of or similar to Sugar Rs

Nord Visual Studio Code
An arctic, north-bluish clean and elegant Visual Studio Code theme.
Stars: ✭ 749 (+499.2%)
Mutual labels:  syntax
Nord Highlightjs
An arctic, north-bluish clean and elegant highlight.js theme.
Stars: ✭ 49 (-60.8%)
Mutual labels:  syntax
Ui As Code
Design work on improving Dart's syntax for UI code
Stars: ✭ 90 (-28%)
Mutual labels:  syntax
Modiscript
Acche din aa gaye
Stars: ✭ 888 (+610.4%)
Mutual labels:  syntax
Explain Rs
A library which finds language features in rust code and provides resources on them.
Stars: ✭ 34 (-72.8%)
Mutual labels:  syntax
Weakable Self
A Swift micro-framework to easily deal with weak references to self inside closures
Stars: ✭ 64 (-48.8%)
Mutual labels:  syntax
Sublime Markdown Extended
Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
Stars: ✭ 645 (+416%)
Mutual labels:  syntax
Clang Format Hooks
Apply a coding style with clang-format only to new code added to an existing code base.
Stars: ✭ 122 (-2.4%)
Mutual labels:  syntax
Catage
Node package and CLI tool to convert code into an image with syntax highlighting
Stars: ✭ 44 (-64.8%)
Mutual labels:  syntax
Astq
Abstract Syntax Tree (AST) Query Engine
Stars: ✭ 89 (-28.8%)
Mutual labels:  syntax
Html5.vim
HTML5 omnicomplete and syntax
Stars: ✭ 901 (+620.8%)
Mutual labels:  syntax
Comby
A tool for structural code search and replace that supports ~every language.
Stars: ✭ 912 (+629.6%)
Mutual labels:  syntax
Stylelint Validator
Stylelint plugin to validate CSS syntax
Stars: ✭ 64 (-48.8%)
Mutual labels:  syntax
Natasha
Solves basic Russian NLP tasks, API for lower level Natasha projects
Stars: ✭ 788 (+530.4%)
Mutual labels:  syntax
Postcss Less
PostCSS Syntax for parsing LESS
Stars: ✭ 93 (-25.6%)
Mutual labels:  syntax
Phplint
🐛 A tool that can speed up linting of php files by running several lint processes at once.
Stars: ✭ 646 (+416.8%)
Mutual labels:  syntax
Elm Syntax Highlight
Syntax highlighting in Elm
Stars: ✭ 61 (-51.2%)
Mutual labels:  syntax
Syntax
A VSCode dark theme inspired by Framer’s popular code editor.
Stars: ✭ 123 (-1.6%)
Mutual labels:  syntax
Nord Sublime Text
An arctic, north-bluish clean and elegant Sublime Text theme.
Stars: ✭ 109 (-12.8%)
Mutual labels:  syntax
Syntax Highlighter
Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
Stars: ✭ 88 (-29.6%)
Mutual labels:  syntax

Sugar

Syntax sugar to make your Rust life more sweet.

Usage

use sugar::*;

Overview

use sugar::*;

// vec of boxed value
let vb1 = vec_box![1, 2, 3];

// vec/list comprehension
let vb2 = v![Box::new(i), for i in 1..4];

// hashmap construction
let hm1 = hashmap!{
    1 => 2,
    2 => 3,
    3 => 4,
};

// hashmap comprehension
let hm2 = m!{i => i + 1, for i in 1..4};

let _ = max!(1, 2, 3);
let _ = min!(1, 2, 3);

if cmp!(1, < num< 3) {
    println!("num is between 1 and 3");
}

More detail in sugar's documentation.

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].