Struct serde_gff::raw::Struct

source ·
pub struct Struct {
    pub tag: u32,
    pub offset: u32,
    pub fields: u32,
}
Expand description

Описание структуры, как оно хранится в GFF файле

Fields

tag: u32

Идентификатор типа структуры. Игрой на самом деле почти никогда не используется. При записи сюда сериализатор всегда записывает сюда 0

offset: u32

Или индекс в массив полей (если self.fields == 1), или в смещение в массиве индексов полей

fields: u32

Количество полей структуры

Implementations

Читает 12 байт значения структуры из потока

Записывает 12 байт значения структуры в поток

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.