fairyvoid-with

Crates.iofairyvoid-with
lib.rsfairyvoid-with
version1.0.0
created_at2025-09-03 21:21:10.246562+00
updated_at2025-09-03 21:21:10.246562+00
descriptionWith literal
homepage
repositoryhttps://github.com/fairyvoid/with.rs
max_upload_size
id1823289
size6,153
Matheus Dias de Souza (hydroperx)

documentation

README

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 .. for Default::default() or ..o for o

Usage

use fairyvoid_with::with;
let y = 0.0;
let o: S = with! { x: 0.0, y, .. };
Commit count: 0

cargo fmt