std_tools 0.1.4

Collection of general purpose tools for solving problems. Fundamentally extend the language without spoiling, so may be used solely or in conjunction with another module of such kind.
Documentation

use former::Options;

// #[ derive( Debug ) ]
// #[ derive( Former ) ]
// #[ perform( fn split( self ) -> SplitIterator< 'a > ) ]
#[ Options ]
fn SomeOptions()
{

  int1 : i32;
  #[ default( 13 ) ]
  int2 : i32;

  #[ default( 13 ) ]
  pub fn f2( self ) -> i32;
  fn f3( self ) -> i32;

  #[ method ]
  fn f1( self ) -> i32
  {
    13
  };

  fn f2( self ) -> i32
  {
    13
  };

}

//

tests_impls!
{
  #[ test ]
  fn basic()
  {
    // let options = SomeOptions { int1 : 31 };
    // let got = options.f1();
    // let exp = 13;
    // a_id!( got, exp );

    // let options = SomeOptions { int1 : 31 };
    // let got = options.int1();
    // let exp = 31;
    // a_id!( got, exp );
  }
}

//

tests_index!
{
  basic,
}