Trait BlockWrite

Source
pub trait BlockWrite {
    // Required method
    fn write<W: ElfWrite>(
        &self,
        writer: &mut W,
        class: Class,
        byte_order: ByteOrder,
    ) -> Result<(), Error>;
}
Expand description

Write a block of data to a file.

Usually a block occupies the whole section or segment.

Required Methods§

Source

fn write<W: ElfWrite>( &self, writer: &mut W, class: Class, byte_order: ByteOrder, ) -> Result<(), Error>

Write the table to the writer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BlockWrite for CStr

Source§

fn write<W: ElfWrite>( &self, writer: &mut W, _class: Class, _byte_order: ByteOrder, ) -> Result<(), Error>

Implementors§