{"id":20089941,"url":"https://github.com/bugadani/listor","last_synced_at":"2026-05-11T11:35:32.837Z","repository":{"id":77144880,"uuid":"332250362","full_name":"bugadani/listor","owner":"bugadani","description":"Doubly linked list in contiguous memory","archived":false,"fork":false,"pushed_at":"2021-02-15T15:07:11.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T15:28:24.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugadani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-01-23T16:04:14.000Z","updated_at":"2021-02-15T15:07:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"383c0bba-ef69-4e5d-bac0-b05cac12bf54","html_url":"https://github.com/bugadani/listor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bugadani/listor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Flistor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Flistor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Flistor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Flistor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugadani","download_url":"https://codeload.github.com/bugadani/listor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Flistor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32893600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":[],"created_at":"2024-11-13T16:20:55.606Z","updated_at":"2026-05-11T11:35:32.818Z","avatar_url":"https://github.com/bugadani.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Listor\n======\n\nListor is both a list and a vector at the same time. It is a linked list implemented in contiguous\nmemory, with constant-time[^1] operations. Listor is internally implemented with a slab allocator.\n\nUnlike [slab] or [stable_vec], Listor implements a doubly-linked list.\n\nExamples\n--------\n\n### Unbounded listor\n\n```rust\nuse listor::Listor;\n\n// Create a new listor with unbounded capacity.\nlet mut listor = Listor::new();\n\nlistor.push_back(1).unwrap();\nlistor.push_back(2).unwrap();\nlistor.push_back(3).unwrap();\n\nassert_eq!(3, listor.len());\n```\n\n### Unbounded listor with initial capacity\n\n```rust\nuse listor::Listor;\n\n// Create a new listor with unbounded capacity with an initial capacity for 2 elements.\nlet mut listor = Listor::with_capacity(2);\n\nlistor.push_back(1).unwrap();\nlistor.push_back(2).unwrap();\n\n// Pushing an element after the listor is full grows the listor.\nlistor.push_back(3).unwrap();\n\nassert_eq!(3, listor.len());\n```\n\n### Bounded listor\n\n```rust\nuse listor::Listor;\n\n// Create a new listor with capacity for 2 elements.\nlet mut listor = Listor::bounded(2);\n\nlistor.push_back(1).unwrap();\nlistor.push_back(2).unwrap();\n\n// Pushing an element after the listor is full fails.\nassert!(listor.push_back(3).is_none());\n\nassert_eq!(2, listor.len());\n```\n\n[slab]: https://crates.io/crates/slab\n[stable_vec]: https://crates.io/crates/stable-vec\n[^1]: as long as the data structure does not have to reallocate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugadani%2Flistor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugadani%2Flistor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugadani%2Flistor/lists"}