pear::combinators

Trait Collection

Source
pub trait Collection<A>: Default + Extend<A> {
    // Provided method
    fn push(&mut self, item: A) { ... }
}

Provided Methods§

Source

fn push(&mut self, item: A)

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.

Implementors§

Source§

impl<A, T: Default + Extend<A>> Collection<A> for T