Struct serde_gff::raw::Field

source ·
pub struct Field {
    pub tag: u32,
    pub label: u32,
    pub data: [u8; 4],
}
Expand description

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

Fields

tag: u32

Идентификатор типа поля

label: u32

Индекс в массив меток, определяющий метку, привязанную к данному полю

data: [u8; 4]

Сами данные для простых данных или смещение в массиве с данными для комплексных типов. Также, если поле представляет собой структуру, то это индекс в массиве структур, а если список – байтовое смещение в массиве списков (хотя сам массив списков состоит из элементов размером 4 байта).

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.