Trait Index

Source
pub unsafe trait Index<Idx: ?Sized>: Index<Idx> { }
Expand description

This trait is empty declaration of ::core::ops::Index to be used with newer_type::implement.

§Example

#[implement(for<Idx> newer_type_std::ops::Index<Idx>)]
struct MyStruct {
    slot: Vec<u8>
}

§Safety

should be implemented by newer_type::implement

Implementors§