hydrate-schema 0.0.2

Game asset pipeline and authoring framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::Schema;

#[derive(Clone, Debug, PartialEq)]
pub struct SchemaDynamicArray {
    item_type: Box<Schema>,
}

impl SchemaDynamicArray {
    pub(crate) fn new(item_type: Box<Schema>) -> Self {
        SchemaDynamicArray { item_type }
    }

    pub fn item_type(&self) -> &Schema {
        &*self.item_type
    }
}