Module rsgenetic::sim::types [] [src]

This module provides implementations of the Fitness trait for some primitive types, such as i32, i64 etcetera. This is because Rust does not allow programmers to implement a foreign trait for a foreign type, which would stop you as a library user from using primitive types as fitness values.

Implemented types:

  • i8
  • i16
  • i32
  • i64
  • u8
  • u16
  • u32
  • u64
  • usize