Trait pcg_rand::extension::extsizes::ExtSize[][src]

pub trait ExtSize {
    const EXT_SIZE: usize;
    const EXT_BITS: u32;
}

This trait helps define the size of the extension of the PCG generator this allows the size of the extension to effectively be part of the type of the extended generator.

These extensions have to be a power of two based on the way the generator utilizes its extension. This could be made much better with associated constants and constant functions, or by type level numbers.

Already provided are:

  • Ext2
  • Ext4
  • Ext8
  • Ext16
  • Ext32
  • Ext64
  • Ext128
  • Ext256
  • Ext512
  • Ext1024 Bigger extensions can be produced and dropped as long as they are powers of 2

Associated Constants

Loading content...

Implementors

impl ExtSize for Ext2[src]

impl ExtSize for Ext4[src]

impl ExtSize for Ext8[src]

impl ExtSize for Ext16[src]

impl ExtSize for Ext32[src]

impl ExtSize for Ext64[src]

impl ExtSize for Ext128[src]

impl ExtSize for Ext256[src]

impl ExtSize for Ext512[src]

impl ExtSize for Ext1024[src]

Loading content...