Trait BorrowIndexAs

Source
pub trait BorrowIndexAs<T>: for<'a> Borrow<Ref<'a>: CopyAs<T>> { }
Expand description

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

Implement CopyAs<T> for the reference type.

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<T, C: for<'a> Borrow<Ref<'a>: CopyAs<T>>> BorrowIndexAs<T> for C