pub struct NodeSpec {
pub level: u8,
pub ty: Vec<u8>,
pub name: Vec<u8>,
pub byte_size: i32,
pub version: i32,
pub type_flags: i32,
pub meta_flag: i32,
pub ref_type_hash: u64,
pub index: Option<i32>,
}Expand description
One node, as the writer lays it out.
Fields§
§level: u8Depth (m_Level); the root is 0.
ty: Vec<u8>m_Type.
name: Vec<u8>m_Name.
byte_size: i32m_ByteSize.
version: i32m_Version.
type_flags: i32m_TypeFlags (m_IsArray in the old format).
meta_flag: i32m_MetaFlag; 0x4000 is “align after”.
ref_type_hash: u64m_RefTypeHash (blob format 19 and up).
index: Option<i32>m_Index as stored; None writes the row’s pre-order index. The core
keeps it as stored, never recomputed, which a test pins with a value
that differs from the position.
Implementations§
Trait Implementations§
impl Eq for NodeSpec
impl StructuralPartialEq for NodeSpec
Auto Trait Implementations§
impl Forget for NodeSpec
impl Freeze for NodeSpec
impl Move for NodeSpec
impl RefUnwindSafe for NodeSpec
impl Send for NodeSpec
impl Sync for NodeSpec
impl Unpin for NodeSpec
impl UnsafeUnpin for NodeSpec
impl UnwindSafe for NodeSpec
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