Crates.io | collect-me |
lib.rs | collect-me |
version | 0.1.0 |
source | src |
created_at | 2024-07-03 14:13:49.874614 |
updated_at | 2024-07-03 14:13:49.874614 |
description | Additional collections not included in the Rust standard library. |
homepage | |
repository | https://github.com/JacoMalan1/collect-me |
max_upload_size | |
id | 1290542 |
size | 21,157 |
This project is a library of data structures that may or may not be useful but are nonetheless not included in the Rust standard library.
Please file a pull request with any changes/improvements you would like to add to the project. Please make sure you have done the following before submitting your PR:
cargo test
.unsafe
keyword must be accompanied by a comment documenting exactly why the code does not violate Rust's safety guarentees.
Those comments should be styled as such:fn some_function() {
let some_val = 42;
let some_ptr: *const i32 = std::mem::addr_of!(some_val);
// SAFETY: Since val hasn't been moved or dropped `some_ptr` will
// still be valid and is therefore safe to dereference.
let val_copy = unsafe { *some_ptr };
}