pub trait Factoring: Sized {
fn factor_events<T: FactoringEventSubscriptor<Self>>(
self,
events: T
) -> Vec<Self>;
fn factor(self) -> Vec<Self> { ... }
}Expand description
Factor number into it’s prime factors
Required Methods
fn factor_events<T: FactoringEventSubscriptor<Self>>(
self,
events: T
) -> Vec<Self>
fn factor_events<T: FactoringEventSubscriptor<Self>>(
self,
events: T
) -> Vec<Self>
Factor number, while being notified as soon as any factors are found using the observer “events”