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 XtFile
impl Move for XtFile
impl RefUnwindSafe for XtFile
impl Unpin for XtFile
impl UnsafeUnpin for XtFile
impl UnwindSafe for XtFile
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