Crates.io | persian-rug |
lib.rs | persian-rug |
version | 0.1.4 |
source | src |
created_at | 2022-05-15 15:41:02.1859 |
updated_at | 2024-06-07 23:27:41.910553 |
description | Framework for bringing together disparate objects with inconvenient relationships. |
homepage | |
repository | https://github.com/eds-collabora/persian-rug-rs |
max_upload_size | |
id | 587209 |
size | 37,699 |
This is a framework for building and mutating collections of objects that refer to one another. It supports having multiple different types participating in the graph. It does not require that links form a directed acyclic graph, or tree, or anything convenient.
To do this, all objects are stored in a centralised holder (a
Context
),
which passes out
Proxy
objects to serve as pointers. All access requires the context to be
present, and this has some limitations with Rust's current mutable
reference rules (it's not possible to borrow the same context mutably
more than once, even when accessing different pieces of data within
it).
Deletion of objects is not supported at present. Contexts many only grow to encompass more objects, old objects may not be retired. This restriction might be lifted a future version of this crate.
This crate is made available under either an Apache-2.0 or an MIT license.