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: TagHeader
Header 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 implementsBufReaderExt
from 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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagFile
impl RefUnwindSafe for TagFile
impl Send for TagFile
impl Sync for TagFile
impl Unpin for TagFile
impl UnwindSafe for TagFile
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