{"id":19389506,"url":"https://github.com/linksplatform/doublets-rs","last_synced_at":"2025-10-24T07:47:46.176Z","repository":{"id":50456774,"uuid":"519133554","full_name":"linksplatform/doublets-rs","owner":"linksplatform","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-11T06:17:13.000Z","size":23286,"stargazers_count":6,"open_issues_count":29,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-11T08:46:39.952Z","etag":null,"topics":["associative","doublets","linksplatform","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linksplatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-29T08:08:39.000Z","updated_at":"2025-03-03T18:48:38.000Z","dependencies_parsed_at":"2024-01-28T18:24:23.727Z","dependency_job_id":"0f3fb4f5-855d-4eb2-9923-7cee7e874b8b","html_url":"https://github.com/linksplatform/doublets-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linksplatform/doublets-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Fdoublets-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Fdoublets-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Fdoublets-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Fdoublets-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linksplatform","download_url":"https://codeload.github.com/linksplatform/doublets-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Fdoublets-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280761860,"owners_count":26386245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["associative","doublets","linksplatform","rust"],"created_at":"2024-11-10T10:16:25.684Z","updated_at":"2025-10-24T07:47:46.160Z","avatar_url":"https://github.com/linksplatform.png","language":"Rust","readme":"# Doublets\n\n[![Build Status][actions-badge]][actions-url]\n\n[actions-badge]: https://github.com/linksplatform/doublets-rs/workflows/CI/badge.svg\n[actions-url]: https://github.com/linksplatform/doublets-rs/actions?query=workflow%3ACI+branch%3Amain\n\nlater\n\n## [Overview](https://github.com/linksplatform)\n\nlater\n\n## Example\n\nA basic operations in doublets:\n\n```rust\nuse doublets::{data, mem, unit, Doublets, DoubletsExt, Links};\n\nfn main() -\u003e Result\u003c(), doublets::Error\u003cusize\u003e\u003e {\n    // use file as memory for doublets\n    let mem = mem::FileMapped::from_path(\"db.links\")?;\n    let mut store = unit::Store::\u003cusize, _\u003e::new(mem)?;\n\n    // create 1: 1 1 - it's point: link where source and target it self\n    let point = store.create_link(1, 1)?;\n\n    // `any` constant denotes any link\n    let any = store.constants().any;\n\n    // print all store from store where (index: any, source: any, target: any)\n    store.each_iter([any, any, any]).for_each(|link| {\n        println!(\"{link:?}\");\n    });\n\n    // delete point with handler (Link, Link)\n    store\n        .delete_with(point, |before, after| {\n            println!(\"delete: {before:?} =\u003e {after:?}\");\n            // track issue: https://github.com/linksplatform/doublets-rs/issues/4\n            data::Flow::Continue\n        })\n        .map(|_| ())\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinksplatform%2Fdoublets-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinksplatform%2Fdoublets-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinksplatform%2Fdoublets-rs/lists"}