pub struct Braid { /* private fields */ }Implementations§
Source§impl Braid
impl Braid
pub fn new(strands: usize, elements: Vec<BraidGen>) -> Self
pub fn id(strands: usize) -> Self
pub fn generator(strands: usize, index: usize) -> Self
pub fn strands(&self) -> usize
pub fn elements(&self) -> &[BraidGen]
pub fn len(&self) -> usize
pub fn is_id(&self) -> bool
pub fn inv(&self) -> Self
pub fn extend(&self, by: usize) -> Self
pub fn reduced(&self) -> Self
pub fn closure(&self) -> Link
pub fn display(&self) -> String
pub fn load(name: &str) -> Result<Braid, Box<dyn Error>>
Trait Implementations§
impl Eq for Braid
Source§impl FromIterator<i8> for Braid
impl FromIterator<i8> for Braid
Source§impl FromIterator<i16> for Braid
impl FromIterator<i16> for Braid
Source§impl FromIterator<i32> for Braid
impl FromIterator<i32> for Braid
Source§impl FromIterator<i64> for Braid
impl FromIterator<i64> for Braid
Source§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 moreSource§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 moreimpl 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 UnsafeUnpin 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