Skip to main content

Two

Trait Two 

Source
pub trait Two<F> {
    // Required methods
    fn two() -> F;
    fn two_pow(pow: u64) -> F;
}
Expand description

Helper to obtain two

Required Methods§

Source

fn two() -> F

Value two

Source

fn two_pow(pow: u64) -> F

Power of two

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Field> Two<F> for F