Trait Builder

Source
pub trait Builder {
    type Entry;

    // Required methods
    fn new(properties: &AllProperties) -> Self;
    fn create_entry(
        &self,
        idx: EntryIdx,
        reader: &ByteSlice<'_>,
    ) -> Result<Self::Entry>;
}

Required Associated Types§

Required Methods§

Source

fn new(properties: &AllProperties) -> Self

Source

fn create_entry( &self, idx: EntryIdx, reader: &ByteSlice<'_>, ) -> Result<Self::Entry>

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 Builder for ()

Source§

type Entry = ()

Source§

fn new(_properties: &AllProperties) -> Self

Source§

fn create_entry( &self, _idx: EntryIdx, _reader: &ByteSlice<'_>, ) -> Result<Self::Entry>

Implementors§