pub struct Braid { /* private fields */ }Implementations§
Source§impl Braid
impl Braid
pub fn new(strands: usize, elements: Vec<Generator>) -> Self
pub fn id(strands: usize) -> Self
pub fn gen(strands: usize, index: usize) -> Self
pub fn all_gens(strands: usize) -> Vec<Self>
pub fn strands(&self) -> usize
pub fn elements(&self) -> &[Generator]
pub fn len(&self) -> usize
pub fn is_triv(&self) -> bool
pub fn inv(&self) -> Self
pub fn reduce(&mut self)
pub fn closure(&self) -> Link
pub fn display(&self) -> String
pub fn load(name_or_path: &str) -> Result<Braid, Box<dyn Error>>
Trait Implementations§
Source§impl FromIterator<i32> for Braid
impl FromIterator<i32> for Braid
Source§impl MulAssign<&Braid> for Braid
impl MulAssign<&Braid> for Braid
Source§fn mul_assign(&mut self, rhs: &Braid)
fn mul_assign(&mut self, rhs: &Braid)
Performs the
*= operation. Read moreSource§impl MulAssign for Braid
impl MulAssign for Braid
Source§fn mul_assign(&mut self, rhs: Braid)
fn mul_assign(&mut self, rhs: Braid)
Performs the
*= operation. Read moreimpl Eq for Braid
impl StructuralPartialEq for Braid
Auto Trait Implementations§
impl Freeze for Braid
impl RefUnwindSafe for Braid
impl Send for Braid
impl Sync for Braid
impl Unpin for Braid
impl UnwindSafe for Braid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more