https://github.com/raymarch/ligature-cheatsheet
https://github.com/raymarch/ligature-cheatsheet
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/raymarch/ligature-cheatsheet
- Owner: RayMarch
- Created: 2022-08-13T14:52:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-20T18:25:37.000Z (over 3 years ago)
- Last Synced: 2025-06-11T08:45:05.083Z (12 months ago)
- Size: 109 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ligature-cheatsheet
| glyph | name | triggers | previous glyphs |
|---|---|---|---|
|
| static | `static` | |
|
| reference | `&` | |
|
| mutable | `mut` |
|
|
| self | `self` | |
|
| return | `return` |
|
|
| associated
function closure | `\|x\|x.` | |
|
| into | `into()` | |
|
| public | `pub` |
|
|
| private | `priv` | |
|
| const | `const` |
|
|
| multi line
comment start | `/*` | |
|
| multi line
comment end | `*/` | |
|
| match | `match` |
|
|
| continue | `continue` | |
|
| break | `break` |
|
|
| iterate | `iter()` | |
|
| Iterator | `Iterator` | |
|
| filter | `filter(` | |
|
| enumerate | `enumerate()` | |
|
| contains | `.contains(` | |
|
| phantom data | `PhantomData` | |
|
| result | `Result` |
|
|
| optional | `Option` |
|
|
| unwrap | `unwrap()` | |
|
| clone | `clone()` | |
|
| to owned | `to_owned()` |
|
|
| to string | `to_string()` |
|
|
| default | `Default::default()` |
|
|
| replace | `replace(` | |
|
| equal to | `.eq(` | |
|
| not equal to | `.ne(` | |
|
| less than | `.lt(` | |
|
| greater than | `.gt(` | |
|
| less
than equal | `.le(` | |
|
| greater
than equal | `.ge(` | |
|
| crate | `crate` | |
|
| super | `super` | |
|
| skip rust
format | `#[rustfmt::skip]` | |
|
| format
string | `format!` | |
|
| format args | `format_args!` | |
|
| debug
print| `dbg!` | |
|
| debug
format| `{:?}` | |
|
| pretty
format| `{:#?}` | |
|
| [ferris](https://rustacean.net) | `ferris` | |
|
| turbofish | `::<>` | |
|
| cannot
infer type | `{unknown}` | |
|
| unsafe | `unsafe` | |
|
| assert | `assert!` | |
|
| debug
assert | `debug_assert!` | |
|
| debug
assertions | `debug_assertions` | |
|
| async | `async` | |
|
| await | `await` | |
|
| syn quote | `quote!` | |
|
| syn quote
spanned| `quote_spanned!` | |
|
| stringify | `stringify` | |
|
| boxed | `Box::new(`
`Rc::new(`
`Arc::new(` | |
|
| macro rules | `macro_rules!` |
|
|
| plus minus | `plus_minus(` | |
|
| wgpu | `wgpu` | |
|
| bytemuck | `bytemuck` |
|
|
| first | `first()` | |
|
| drop | `drop` |
|
|
| cell | `Cell<` |
|
|
| ref cell | `RefCell<` |
|
|
| record | `.rec()` |
|