[−][src]Struct truncated_free_groups::truncated_group::TruncatedGroup
Represents the ball of radius 3 in the Cayley graph of the free group with respect to the standard generating set.
#Examples Basic usage:
use std::collections::BTreeSet; use l_group_formulas::literal::Literal; use l_group_formulas::short_free_group_term::ShortFreeGroupTerm; use truncated_free_groups::truncated_group::TruncatedGroup; let mut generators = BTreeSet::new(); generators.insert(Literal::from('x')); generators.insert(Literal::from('y')); let truncated_group = TruncatedGroup::new(generators); let mut expected: BTreeSet<ShortFreeGroupTerm> = BTreeSet::new(); assert_eq!(53, truncated_group.elements.len());
Fields
generators: BTreeSet<Literal>
elements: Box<BTreeSet<ShortFreeGroupTerm>>
Implementations
impl TruncatedGroup
[src]
pub fn new(generators: BTreeSet<Literal>) -> TruncatedGroup
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TruncatedGroup
impl Send for TruncatedGroup
impl Sync for TruncatedGroup
impl Unpin for TruncatedGroup
impl UnwindSafe for TruncatedGroup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,