Trait Extend

Source
pub unsafe trait Extend<A>: Extend<A> { }
Expand description

This trait is empty declaration of ::core::iter::Extend to be used with newer_type::implement.

§Example

#[implement(for<A> newer_type_std::iter::Extend<A>)]
struct MyStruct {
    slot: Vec<u8>
}

§Safety

should be implemented by newer_type::implement

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§