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

The identity element of a SLP.

A generator, indexed by an integer.

Product of two SLPs.

Inverse of a SLP.

Methods

impl SLP
[src]

[src]

Map the SLP in to a Word according to the Morphism.

Trait Implementations

impl Debug for SLP
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for SLP
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for SLP
[src]

impl Hash for SLP
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for SLP
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl GroupElement for SLP
[src]

[src]

Determine if the group element is the identity.

[src]

The associated operation of the Group.

[src]

Returns the inverse of the group element.

impl Display for SLP
[src]

[src]

Formats the value using the given formatter. Read more