pub enum Factored<ObjectSet: Debug + Clone, ExponentSet: Debug + Clone> {
Zero,
NonZero(NonZeroFactored<ObjectSet, ExponentSet>),
}Variants§
Zero
NonZero(NonZeroFactored<ObjectSet, ExponentSet>)
Implementations§
Source§impl<ObjectSet: Debug + Clone, ExponentSet: Debug + Clone> Factored<ObjectSet, ExponentSet>
impl<ObjectSet: Debug + Clone, ExponentSet: Debug + Clone> Factored<ObjectSet, ExponentSet>
pub fn is_zero(&self) -> bool
pub fn unwrap_nonzero(self) -> NonZeroFactored<ObjectSet, ExponentSet>
pub fn powers(&self) -> Option<&Vec<(ObjectSet, ExponentSet)>>
pub fn into_powers(self) -> Option<Vec<(ObjectSet, ExponentSet)>>
pub fn unit(&self) -> Option<&ObjectSet>
pub fn into_unit(self) -> Option<ObjectSet>
pub fn unit_and_powers( &self, ) -> Option<(&ObjectSet, &Vec<(ObjectSet, ExponentSet)>)>
pub fn into_unit_and_powers( self, ) -> Option<(ObjectSet, Vec<(ObjectSet, ExponentSet)>)>
pub fn distinct_irreducibles(&self) -> Option<Vec<&ObjectSet>>
pub fn into_distinct_irreducibles(self) -> Option<Vec<ObjectSet>>
Trait Implementations§
Source§impl<ObjectSet: Clone + Debug + Clone, ExponentSet: Clone + Debug + Clone> Clone for Factored<ObjectSet, ExponentSet>
impl<ObjectSet: Clone + Debug + Clone, ExponentSet: Clone + Debug + Clone> Clone for Factored<ObjectSet, ExponentSet>
Source§impl<ObjectSet: Debug + Debug + Clone, ExponentSet: Debug + Debug + Clone> Debug for Factored<ObjectSet, ExponentSet>
impl<ObjectSet: Debug + Debug + Clone, ExponentSet: Debug + Debug + Clone> Debug for Factored<ObjectSet, ExponentSet>
Auto Trait Implementations§
impl<ObjectSet, ExponentSet> Freeze for Factored<ObjectSet, ExponentSet>where
ObjectSet: Freeze,
impl<ObjectSet, ExponentSet> RefUnwindSafe for Factored<ObjectSet, ExponentSet>where
ObjectSet: RefUnwindSafe,
ExponentSet: RefUnwindSafe,
impl<ObjectSet, ExponentSet> Send for Factored<ObjectSet, ExponentSet>
impl<ObjectSet, ExponentSet> Sync for Factored<ObjectSet, ExponentSet>
impl<ObjectSet, ExponentSet> Unpin for Factored<ObjectSet, ExponentSet>
impl<ObjectSet, ExponentSet> UnwindSafe for Factored<ObjectSet, ExponentSet>where
ObjectSet: UnwindSafe,
ExponentSet: 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