[][src]Struct serde_gff::header::Section

pub struct Section {
    pub offset: u32,
    pub count: u32,
}

Описание области файла, описывающей местоположение списков записей в файле

Fields

offset: u32

Смещение в байтах от начала файла в сериализованном виде

count: u32

Количество записей по смещению offset. Размер записи зависит от конкретного поля

Methods

impl Section[src]

pub fn read<R: Read>(reader: &mut R) -> Result<Self>[src]

Читает описание области из потока

pub fn write<W: Write>(&self, writer: &mut W) -> Result<()>[src]

Записывает описание области файла в поток

Trait Implementations

impl Debug for Section[src]

impl Default for Section[src]

Auto Trait Implementations

impl RefUnwindSafe for Section

impl Send for Section

impl Sync for Section

impl Unpin for Section

impl UnwindSafe for Section

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.