fairyvoid-with 1.0.0

With literal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# With literal


Implicit struct initializer for Rust based on [this Rust post](https://internals.rust-lang.org/t/short-enum-variant-syntax-in-some-cases/13113/9).

In the future, this literal may allow omitting the `..` component if in the future Rust supports a way to infer the struct name.

## Limitations


* Requires a base object: either `..` for `Default::default()` or `..o` for `o`

## Usage


```rust
use fairyvoid_with::with;
let y = 0.0;
let o: S = with! { x: 0.0, y, .. };
```