Trait forest_filecoin::db::car::forest::index::Writeable

source ·
trait Writeable {
    const LEN: u64;

    // Required method
    fn write_to(&self, writer: impl Write) -> Result<()>;
}

Required Associated Constants§

source

const LEN: u64

The number of bytes that will be written on a call to Writeable::write_to.

Implementations may panic if this is incorrect.

Required Methods§

source

fn write_to(&self, writer: impl Write) -> Result<()>

Must only return [Err(_)] if the underlying io fails.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Writeable for &T
where T: Writeable,

source§

fn write_to(&self, writer: impl Write) -> Result<()>

source§

const LEN: u64 = T::LEN

Implementors§

source§

impl Writeable for Slot

source§

const LEN: u64 = 16u64

source§

impl Writeable for Version

source§

const LEN: u64 = 8u64

source§

impl Writeable for RawSlot

source§

const LEN: u64 = 16u64

source§

impl Writeable for V1Header

source§

const LEN: u64 = 24u64