Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fee1-dead/raise
`yeet!`
https://github.com/fee1-dead/raise
Last synced: about 2 months ago
JSON representation
`yeet!`
- Host: GitHub
- URL: https://github.com/fee1-dead/raise
- Owner: fee1-dead
- Created: 2022-04-21T14:17:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-23T10:53:34.000Z (over 2 years ago)
- Last Synced: 2024-10-29T06:41:57.935Z (2 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `yeet!`
Replace `return Err(x)` and `return None` with:
```rust
fn foo() -> Option {
yeet!();
}fn bar() -> Result {
yeet!(42);
}fn baz(x: u32) -> Result {
if x % 2 == 1 {
yeet!(x);
}
Ok(x)
}
```That's pretty much it.