With literal
Implicit struct initializer for Rust based on this Rust post.
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
..forDefault::default()or..oforo
Usage
use with;
let y = 0.0;
let o: S = with! ;