pub trait NitfSegmentHeader
where Self: Sized + Default,
{ // Required methods fn read(&mut self, reader: &mut File) -> NitfResult<()>; fn write(&self, writer: &mut File) -> NitfResult<usize>; fn length(&self) -> usize; // Provided method fn from_reader(reader: &mut File) -> NitfResult<Self> { ... } }
Expand description

Nitf segment header interface definition

Provide implementation for read(), from_reader defined automatically.

Required Methods§

source

fn read(&mut self, reader: &mut File) -> NitfResult<()>

Read the segment info from stream

§Parameters

reader: Stream from which to read header information

source

fn write(&self, writer: &mut File) -> NitfResult<usize>

Write the segment info to stream

§Parameters

writer: Stream from which to write header information

source

fn length(&self) -> usize

Get the length of the segment

Provided Methods§

source

fn from_reader(reader: &mut File) -> NitfResult<Self>

Object Safety§

This trait is not object safe.

Implementors§