Skip to main content

Incomplete

Trait Incomplete 

Source
pub trait Incomplete: Sized {
    type Complete;

    // Required methods
    fn new(name: &'static str) -> Self;
    fn build(self) -> ReadResult<Self::Complete>;

    // Provided method
    fn new_unnamed() -> Self { ... }
}

Required Associated Types§

Required Methods§

Source

fn new(name: &'static str) -> Self

Source

fn build(self) -> ReadResult<Self::Complete>

Provided Methods§

Source

fn new_unnamed() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Incomplete> Incomplete for Box<T>

Source§

type Complete = Box<<T as Incomplete>::Complete>

Source§

fn new(name: &'static str) -> Self

Source§

fn build(self) -> ReadResult<Self::Complete>

Implementors§