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§
fn with_capacity(capacity: usize) -> Self
fn push(&mut self, value: Option<Self::RefItem<'_>>)
fn finish(self) -> Self::Array
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".