Trait pcg_rand::outputmix::OutputMixin[][src]

pub trait OutputMixin<Itype, Xtype> {
    const SERIALIZER_ID: &'static str;

    fn output(state: Itype, increment: Itype, multiplier: Itype) -> Xtype;
}

The output mixin trait provides the permutation function for the output of the PCG. After the LCG state is advanced the state is run through the output(...) function to produce the output.

Associated Constants

const SERIALIZER_ID: &'static str[src]

Loading content...

Required methods

fn output(state: Itype, increment: Itype, multiplier: Itype) -> Xtype[src]

Loading content...

Implementors

impl<Itype, Xtype> OutputMixin<Itype, Xtype> for DXsMMixin where
    Itype: AsSmaller<Xtype> + Shr<usize, Output = Itype> + BitSize + Copy,
    Xtype: BitSize + PcgOps + Shr<usize, Output = Xtype> + BitXor<Xtype, Output = Xtype> + BitOr<Xtype, Output = Xtype> + One + Copy
[src]

impl<Itype, Xtype> OutputMixin<Itype, Xtype> for XshRrMixin where
    Itype: Shr<usize, Output = Itype> + BitXor<Itype, Output = Itype> + AsUsize + AsSmaller<Xtype> + BitSize + Copy,
    Xtype: BitSize + PrimInt
[src]

impl<Itype, Xtype> OutputMixin<Itype, Xtype> for XshRsMixin where
    Itype: Shr<usize, Output = Itype> + BitXor<Itype, Output = Itype> + AsSmaller<Xtype> + BitSize + AsUsize + Copy,
    Xtype: BitSize
[src]

Loading content...