pub struct XtFile {
pub modeller_version: String,
pub schema: String,
pub header: Vec<(String, String)>,
pub partition: bool,
pub max_node_type: Option<i64>,
pub user_field_size: usize,
/* private fields */
}Expand description
A parsed text transmit file.
Fields§
§modeller_version: StringTRANSMIT FILE created by modeller version ….
schema: StringSCH_<version>_<schema>[_<base>].
header: Vec<(String, String)>The header’s KEY=value pairs (parts 1 to 3).
partition: boolA partition (TRANSMIT FILE (partition)): its root is the WORLD,
whose bodies are the partition’s.
max_node_type: Option<i64>With embedded deltas, the largest node type the schema has.
user_field_size: usizeIntegers of user data each visible node carries (§2.1).
Implementations§
Source§impl XtFile
impl XtFile
pub fn nodes(&self) -> &[Node]
Sourcepub fn node(&self, index: u32) -> Option<&Node>
pub fn node(&self, index: u32) -> Option<&Node>
The node an index names; 0 and indices with no node are null (§2.1.4.4).
Sourcepub fn follow(&self, node: &Node, field: &str) -> Option<&Node>
pub fn follow(&self, node: &Node, field: &str) -> Option<&Node>
The node a pointer field of node names.
pub fn header_value(&self, key: &str) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl !Send for XtFile
impl !Sync for XtFile
impl Forget for XtFile
impl Freeze for XtFilewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<(u32, usize)>: Freeze,
impl Move for XtFile
impl RefUnwindSafe for XtFile
impl Unpin for XtFile
impl UnsafeUnpin for XtFilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<(u32, usize)>: UnsafeUnpin,
impl UnwindSafe for XtFilewhere
RawVecInner: UnwindSafe,
Rc<NodeLayout>: UnwindSafe,
HashMap<u32, usize, FxBuildHasher>: UnwindSafe,
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