Skip to main content

PushIndexAs

Trait PushIndexAs 

Source
pub trait PushIndexAs<T>:
    BorrowIndexAs<T>
    + Container
    + for<'a> Push<&'a T> { }
Expand description

A composite trait which captures the ability Push<&T> and Index<Ref = T>.

Implement CopyAs<T> for the reference type, and Push<&'a T> for the container.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, C: BorrowIndexAs<T> + Container + for<'a> Push<&'a T>> PushIndexAs<T> for C