Struct infinite_rs::tag::reference::TagReference
source · pub struct TagReference {
pub field_block: u32,
pub field_offset: u32,
pub name_offset: u32,
pub dependency_index: i32,
}Expand description
Structure that defines a reference to a tag.
Fields§
§field_block: u32The index of the data block containing the tag field.
field_offset: u32The offset of the tag data block containing the referenced data. Can be -1 for null references.
name_offset: u32The offset of the tag file name inside the module string table.
dependency_index: i32The index of the tag dependency in the tag dependency list. Can be -1 for null tag references.
Implementations§
source§impl TagReference
impl TagReference
sourcepub fn read<R: BufRead>(&mut self, reader: &mut R) -> Result<()>
pub fn read<R: BufRead>(&mut self, reader: &mut R) -> Result<()>
Reads the tag reference from the given readers implementing “BufRead”.
§Arguments
reader- A mutable reference to a reader that implementsBufReadfrom which to read the data.
§Returns
Returns Ok(()) if the header is successfully read, or an Err if an I/O error occurs
or if the header data is invalid.
Trait Implementations§
source§impl Debug for TagReference
impl Debug for TagReference
source§impl Default for TagReference
impl Default for TagReference
source§fn default() -> TagReference
fn default() -> TagReference
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TagReference
impl RefUnwindSafe for TagReference
impl Send for TagReference
impl Sync for TagReference
impl Unpin for TagReference
impl UnwindSafe for TagReference
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