pub struct TagFile {
pub header: TagHeader,
pub dependencies: Vec<TagDependency>,
pub datablock_definitions: Vec<TagDataBlock>,
pub struct_definitions: Vec<TagStruct>,
pub data_references: Vec<TagDataReference>,
pub tag_references: Vec<TagReference>,
}Expand description
Tag structure containing structure of entire tag file.
Fields§
§header: TagHeaderHeader containing info on how to read other parts of the file.
dependencies: Vec<TagDependency>Tags that are referenced by this tag and that need to be lazy loaded.
datablock_definitions: Vec<TagDataBlock>Blocks making up the entire tag (Internal and External)
struct_definitions: Vec<TagStruct>Internal structure units of the tag.
data_references: Vec<TagDataReference>References to external data from the tag.
tag_references: Vec<TagReference>Tags that are referenced by this tag inside the module.
Implementations§
Source§impl TagFile
impl TagFile
Sourcepub fn read<R: BufReaderExt>(
&mut self,
reader: &mut R,
version: &ModuleVersion,
) -> Result<()>
pub fn read<R: BufReaderExt>( &mut self, reader: &mut R, version: &ModuleVersion, ) -> Result<()>
Reads the tag file from the given readers implementing BufReaderExt.
§Arguments
reader- A mutable reference to a reader that implementsBufReaderExtfrom which to read the data.module_version- Version of the module being read
§Errors
- If the reader fails to read the exact number of bytes
ReadError