summaryrefslogtreecommitdiffstats
path: root/src/types.rs
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2020-02-23 17:01:14 +0100
committerMinijackson <minijackson@riseup.net>2020-02-23 17:01:14 +0100
commit5b137e8bb767aa2b381e9d5a0710583c4edaa889 (patch)
treeb732d1071bffda7b9d54aaa5ebeb0122890a750a /src/types.rs
parent5a83e2b55b672042562601866ed0253613c5e8b8 (diff)
downloadposeidoc-5b137e8bb767aa2b381e9d5a0710583c4edaa889.tar.gz
poseidoc-5b137e8bb767aa2b381e9d5a0710583c4edaa889.zip
Big clang refactoring
- Manipulating the entity tree should be much nicer: - "Typesafe type erasure" - Entry API for the tree - *NOT clang specific*: There is now a single entity at the top of the tree: the global namespace scope for the case of C/C++
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.rs b/src/types.rs
index 4099714..33a86c6 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -13,7 +13,7 @@ use std::str::FromStr;
13#[non_exhaustive] 13#[non_exhaustive]
14pub struct Poseidoc { 14pub struct Poseidoc {
15 pub config: toml::Value, 15 pub config: toml::Value,
16 pub entities: BTreeMap<String, Entity>, 16 pub toplevel_entity: Entity,
17} 17}
18 18
19#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] 19#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]