dsalgo 0.3.10

A package for Datastructures and Algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{
    algebraic_structure::itself::*,
    power_group::pow_group,
};

pub trait PowGroup<I>: Group<I>
where
    Self: Clone,
{
    fn pow_group(
        self,
        exp: i64,
    ) -> Self {
        pow_group(&Self::op, &Self::e, &Self::inv, self, exp)
    }
}

impl<S: Group<I> + Clone, I> PowGroup<I> for S {}