valkyrie-types 0.0.8

Shard types for valkyrie language
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::*;

impl ConvertTo<StructureType> for ValkyrieStructure {
    fn convert(&self) -> StructureType {
        let mut item = StructureType::new(self.name());
        for field in self.fields.values() {
            item.add_field(field.convert());
        }
        item
    }
}