Skip to main content

ArrayBuilder

Trait ArrayBuilder 

Source
pub trait ArrayBuilder {
    type Array;
    type RefItem<'a>;

    // Required methods
    fn with_capacity(capacity: usize) -> Self;
    fn push(&mut self, value: Option<Self::RefItem<'_>>);
    fn finish(self) -> Self::Array;
}
Expand description

Checkpoint 1: add the reciprocal bounds and item relationship for append-only builders.

Required Associated Types§

Required Methods§

Source

fn with_capacity(capacity: usize) -> Self

Source

fn push(&mut self, value: Option<Self::RefItem<'_>>)

Source

fn finish(self) -> Self::Array

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§