Enum permutation_rs::group::tree::SLP
[−]
[src]
pub enum SLP { Identity, Generator(u64), Product(Box<SLP>, Box<SLP>), Inverse(Box<SLP>), }
Single Line Program (SLP) references various elements to form a expression That can be evaluated to actual group elements.
Variants
Identity
The identity element of a SLP.
Generator(u64)
A generator, indexed by an integer.
Product(Box<SLP>, Box<SLP>)
Product of two SLPs.
Inverse(Box<SLP>)
Inverse of a SLP.
Methods
impl SLP
[src]
fn transform(&self, morphism: &Morphism<SLP, Word>) -> Word
[src]
Map the SLP
in to a Word
according to the Morphism
.
Trait Implementations
impl Debug for SLP
[src]
impl PartialEq for SLP
[src]
fn eq(&self, __arg_0: &SLP) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SLP) -> bool
[src]
This method tests for !=
.
impl Eq for SLP
[src]
impl Hash for SLP
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for SLP
[src]
fn clone(&self) -> SLP
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl GroupElement for SLP
[src]
fn is_identity(&self) -> bool
[src]
Determine if the group element is the identity.
fn times(&self, multiplicant: &SLP) -> SLP
[src]
The associated operation of the Group.
fn inverse(&self) -> SLP
[src]
Returns the inverse of the group element.