derive_tools 0.70.1

A collection of derive macros designed to enhance STD.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core ::ops ::Index;

#[ allow( dead_code ) ]
struct StructMultipleTuple< T >( bool, Vec< T > );

impl< T > Index< usize > for StructMultipleTuple< T >
{
  type Output = T;

  fn index( &self, index: usize ) -> &Self ::Output 
  {
  &self.1[ index ]   
 }
}

// include!( "./only_test/struct_multiple_tuple.rs" );