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>,
pub(crate) zoneset_header: TagZonesetHeader,
pub(crate) zonesets: Vec<TagZoneset>,
}
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.
zoneset_header: TagZonesetHeader
Zoneset header for reading the other zonesets.
zonesets: Vec<TagZoneset>
Zonesets, unknown what these are.
Trait Implementations§
Source§impl Enumerable for TagFile
impl Enumerable for TagFile
Source§fn read<R: BufReaderExt>(&mut self, reader: &mut R) -> Result<()>
fn read<R: BufReaderExt>(&mut self, reader: &mut R) -> Result<()>
Reads the tag fike from the given readers implementing BufReaderExt
.
§Arguments
reader
- A mutable reference to a reader that implementsBufReaderExt
from which to read the data.
§Returns
Returns Ok(())
if the header is successfully read, or an Error
if an I/O error occurs
or if the header data is invalid.
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