Registry / utility / assign

assign

JSON →
library1.1.1rscratesunverified

A simple macro to allow mutating instances with a declarative flavor.

# Cargo.toml [dependencies] assign = "1.1.1"
INSTALL
IMPORT
SIG · ASSIGN
A
assign
utilityrustv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

assign
use assign::assign;

Assigns a new value to a mutable variable.

use assign::assign; fn main() { let mut x = 5; assign!(x, 10); println!("x = {}", x); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
12
OpenAI (training)
2
Meta
1
Resources
assign — cargo add assign · libregistry