Trait optimath::Stupidity [−][src]
pub trait Stupidity<T> { fn build_with_fn<F: FnMut(usize) -> T>(f: F) -> Self; }
Expand description
now you might be asking: hey djugei, why isn’t this function just implemented directly on Vector?
and that is a very good question! well the answer is that for some reason if i copy this exact code into the types impl and delete the trait i get an infinite recursion error during compilation that i can’t explain, feels a lot like spooky action at a distance and that i would consider a compiler bug
Required methods
fn build_with_fn<F: FnMut(usize) -> T>(f: F) -> Self