MCPcopy Create free account
hub / github.com/PoiScript/orgize / to_hash_map

Method to_hash_map

src/ast/drawer.rs:46–48  ·  view source on GitHub ↗

```rust use orgize::{Org, ast::PropertyDrawer}; let org = Org::parse("* Heading\n:PROPERTIES:\n:CUSTOM_ID: someid\n:CUSTOM_ID: id\n:END:"); let drawer = org.first_node:: ().unwrap(); let map = drawer.to_hash_map(); assert_eq!(map.len(), 1); assert_eq!(map.get("CUSTOM_ID").unwrap(), "id"); ```

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected