pub struct Node {
pub ty: Arc<str>,
pub name: Arc<str>,
pub byte_size: i32,
pub version: i32,
pub meta_flag: u32,
pub children: Vec<usize>,
}Expand description
One node: its type and field name, its byte size (-1: variable), version, meta flags and children (indices into the tree’s node list).
Fields§
§ty: Arc<str>The node’s type name (int, string, vector, a class name, …).
name: Arc<str>The field name.
byte_size: i32The size in bytes the tree states for a value of this node, or -1 where it varies.
version: i32The node’s version, as stored.
meta_flag: u32The meta flags: ALIGN and others the decoder does not use.
children: Vec<usize>Indices into TypeTree::nodes, in field order; every child’s index is greater than its parent’s.
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more