[−][src]Trait zerocaf::traits::ops::Half
Trait that represents the /2
operation for any
kind of element on the library.
This is a more performant way of performing the
division by 2 that dividing by 2 with the Div
trait implementation.
This trait is implemented following the rules that mandate over the Type that is being implemented.
Associated Types
type Output
Required methods
Loading content...Implementors
impl<'a> Half for &'a FieldElement
[src]
type Output = FieldElement
fn half(self) -> FieldElement
[src]
Give the half of the FieldElement value (mod l).