Registry / utility / by-address

by-address

JSON →
library1.2.1rscratesunverified

Wrapper for comparing and hashing pointers by memory address.

# Cargo.toml [dependencies] by_address = "1.2.1"
INSTALL
IMPORT
SIG · BY-ADDRESS
B
by-address
utilityrustv1.2.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.

ByAddress
use by_address::ByAddress;

Compares two Rc pointers by their memory address rather than value.

use by_address::ByAddress; use std::rc::Rc; fn main() { let a = Rc::new(42); let b = Rc::new(42); let wrapped_a = ByAddress(a.clone()); let wrapped_b = ByAddress(b.clone()); println!("Are they equal by address? {}", wrapped_a == wrapped_b); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources