pub struct RootedTree<T> { /* private fields */ }
Implementations§
Source§impl<T> RootedTree<T>
impl<T> RootedTree<T>
Source§impl<T: Clone + Ord> RootedTree<T>
impl<T: Clone + Ord> RootedTree<T>
pub fn factorize(&self) -> Option<(RootedTree<T>, RootedTree<T>)>
pub fn graft(&mut self, tree: RootedTree<T>)
Trait Implementations§
Source§impl<T: Clone> Clone for RootedTree<T>
impl<T: Clone> Clone for RootedTree<T>
Source§impl<T: Debug> Debug for RootedTree<T>
impl<T: Debug> Debug for RootedTree<T>
Source§impl<T: Clone + Ord> From<LyndonWord<T>> for RootedTree<T>
impl<T: Clone + Ord> From<LyndonWord<T>> for RootedTree<T>
Source§fn from(value: LyndonWord<T>) -> Self
fn from(value: LyndonWord<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Hash> Hash for RootedTree<T>
impl<T: Hash> Hash for RootedTree<T>
Source§impl<T: PartialEq> PartialEq for RootedTree<T>
impl<T: PartialEq> PartialEq for RootedTree<T>
Source§impl<T: Clone + Ord> TryFrom<&RootedTree<T>> for LyndonWord<T>
impl<T: Clone + Ord> TryFrom<&RootedTree<T>> for LyndonWord<T>
Source§type Error = LyndonWordError
type Error = LyndonWordError
The type returned in the event of a conversion error.
impl<T: Eq> Eq for RootedTree<T>
Auto Trait Implementations§
impl<T> Freeze for RootedTree<T>where
T: Freeze,
impl<T> RefUnwindSafe for RootedTree<T>where
T: RefUnwindSafe,
impl<T> Send for RootedTree<T>where
T: Send,
impl<T> Sync for RootedTree<T>where
T: Sync,
impl<T> Unpin for RootedTree<T>where
T: Unpin,
impl<T> UnwindSafe for RootedTree<T>where
T: UnwindSafe,
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<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