Struct BaseStrongGeneratorLevel

Source
pub struct BaseStrongGeneratorLevel<Domain, G>
where Domain: Eq + Hash + Clone, G: GroupElement + GroupAction<Domain = Domain> + PartialEq,
{ /* private fields */ }
Expand description

A level in the Schreier-Sims Base Strong generator algorithm.

It basically is a SchreierVector with some extra book-keeping.

Implementations§

Source§

impl<Domain, G> BaseStrongGeneratorLevel<Domain, G>
where Domain: Eq + Hash + Clone, G: GroupElement + GroupAction<Domain = Domain> + PartialEq,

Source

pub fn new(base: Domain, generators: Vec<G>) -> (Self, Vec<G>)

Create a BaseStrongGeneratorLevel with a known base and generators.

Source

pub fn has_transversal_for(&self, g: &G) -> bool

Determine if this levels base is acted upon by g in a way compatible for this level.

Source

pub fn transversal_for(&self, g: &G) -> Option<G>

The transversal corresponding with g.

Source

pub fn length(&self) -> usize

Length of the orbit

Trait Implementations§

Source§

impl<Domain, G> Display for BaseStrongGeneratorLevel<Domain, G>
where Domain: Eq + Hash + Clone + Display, G: GroupElement + GroupAction<Domain = Domain> + PartialEq + Display,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<Domain, G> Freeze for BaseStrongGeneratorLevel<Domain, G>
where Domain: Freeze,

§

impl<Domain, G> RefUnwindSafe for BaseStrongGeneratorLevel<Domain, G>
where Domain: RefUnwindSafe, G: RefUnwindSafe,

§

impl<Domain, G> Send for BaseStrongGeneratorLevel<Domain, G>
where Domain: Send, G: Send,

§

impl<Domain, G> Sync for BaseStrongGeneratorLevel<Domain, G>
where Domain: Sync, G: Sync,

§

impl<Domain, G> Unpin for BaseStrongGeneratorLevel<Domain, G>
where Domain: Unpin, G: Unpin,

§

impl<Domain, G> UnwindSafe for BaseStrongGeneratorLevel<Domain, G>
where Domain: UnwindSafe, G: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.