cralgebra 0.2.1

A fast crypto algebra library
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Additive order representative with optional runtime context.
///
/// This operation must return a value of the desired type
/// corresponding to a representative of the additive
/// order of the input type, optionally
/// taking an extra parameter that describes the
/// underlying algebraic structure at runtime.
pub trait OrderDyn<C, D, T>: Sized {
    /// Computes the additive order of `Self`. [Read more][OrderDyn]
    fn order_d(ctx: &C, ctx2: &D) -> T;
}