pub trait PeerBuilder {
type Peer: AllocateBuilder;
// Required method
fn new_vector(peers: usize, refill: BytesRefill) -> Vec<Self::Peer>;
}
Expand description
A builder for vectors of peers.
Required Associated Types§
Sourcetype Peer: AllocateBuilder
type Peer: AllocateBuilder
The peer type.
Required Methods§
Sourcefn new_vector(peers: usize, refill: BytesRefill) -> Vec<Self::Peer>
fn new_vector(peers: usize, refill: BytesRefill) -> Vec<Self::Peer>
Allocate a list of Self::Peer
of length peers
.
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.