cameleon_genapi/node.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5use super::{
6 interface::INode,
7 node_base::{NodeAttributeBase, NodeBase, NodeElementBase},
8};
9
10#[derive(Debug, Clone)]
11pub struct Node {
12 pub(crate) attr_base: NodeAttributeBase,
13 pub(crate) elem_base: NodeElementBase,
14}
15
16impl INode for Node {
17 fn node_base(&self) -> NodeBase {
18 NodeBase::new(&self.attr_base, &self.elem_base)
19 }
20
21 fn streamable(&self) -> bool {
22 false
23 }
24}