Crates.io | linked_list_c |
lib.rs | linked_list_c |
version | 0.1.2 |
source | src |
created_at | 2022-12-22 23:51:19.045667 |
updated_at | 2023-03-05 02:02:22.413335 |
description | Safely work with c compatible linked lists |
homepage | |
repository | https://github.com/Will-Shanks/linked_list_c-rs |
max_upload_size | |
id | 744177 |
size | 16,060 |
This is a Rust crate with the goal of making C style linked lists easier to work with.
Some FFIs accept and/or return linked lists, requiring pointer wrangling and unsafe code to handle. This crate tries to take care of those ugly bits for you, and provide a safe and ergonomic interface instead
#[derive(LlItem)]
if yourStruct.next
points to the next yourStruct
impl_LlItem!([yourStruct, ...])
macrofrom<Vec>
impl)