[−][src]Struct truncated_free_groups::truncated_subgroup::TruncatedSubgroup
Represents the closed ball of radius 3 around e in the Cayley graph of a free group with respect to the standard free generating set.
Examples
Basic usage:
use truncated_free_groups::truncated_subgroup::TruncatedSubgroup; use l_group_formulas::short_free_group_term::ShortFreeGroupTerm; use l_group_formulas::literal::Literal; use std::collections::BTreeSet; let s = ShortFreeGroupTerm::from("xY"); let t = ShortFreeGroupTerm::from("yz"); let mut set = BTreeSet::new(); set.insert(s); set.insert(t); let mut gens = BTreeSet::new(); gens.insert(Literal::from('x')); gens.insert(Literal::from('y')); gens.insert(Literal::from('z')); let truncated = TruncatedSubgroup::new(Box::new(set), gens, false, false, false); let mut expected = Box::new(BTreeSet::new()); expected.insert(s); expected.insert(t); expected.insert(ShortFreeGroupTerm::from("xz")); assert_eq!(expected, truncated.elements.clone());
Fields
elements: Box<BTreeSet<ShortFreeGroupTerm>>
Implementations
impl TruncatedSubgroup
[src]
pub fn new(
elements: Box<BTreeSet<ShortFreeGroupTerm>>,
gens: BTreeSet<Literal>,
closed: bool,
break_at_identity: bool,
verbose: bool
) -> TruncatedSubgroup
[src]
elements: Box<BTreeSet<ShortFreeGroupTerm>>,
gens: BTreeSet<Literal>,
closed: bool,
break_at_identity: bool,
verbose: bool
) -> TruncatedSubgroup
Trait Implementations
impl Debug for TruncatedSubgroup
[src]
impl Insert for TruncatedSubgroup
[src]
fn insert(
&mut self,
element: ShortFreeGroupTerm
) -> BTreeSet<ShortFreeGroupTerm>
[src]
&mut self,
element: ShortFreeGroupTerm
) -> BTreeSet<ShortFreeGroupTerm>
Auto Trait Implementations
impl RefUnwindSafe for TruncatedSubgroup
impl Send for TruncatedSubgroup
impl Sync for TruncatedSubgroup
impl Unpin for TruncatedSubgroup
impl UnwindSafe for TruncatedSubgroup
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>,