Trait IndexMut

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

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

§Example

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

§Safety

should be implemented by newer_type::implement

Implementors§