don't use dyn_iter for newtons_method_helper
This commit is contained in:
parent
c7e8865d7e
commit
50ef1d17f9
@ -242,11 +242,14 @@ impl<'a> std::fmt::Debug for Hint<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Hint<'a> {
|
impl<'a> Hint<'a> {
|
||||||
|
#[inline]
|
||||||
pub const fn is_none(&self) -> bool { matches!(&self, &Hint::None) }
|
pub const fn is_none(&self) -> bool { matches!(&self, &Hint::None) }
|
||||||
|
|
||||||
|
#[inline]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub const fn is_some(&self) -> bool { !self.is_none() }
|
pub const fn is_some(&self) -> bool { !self.is_none() }
|
||||||
|
|
||||||
|
#[inline]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub const fn is_single(&self) -> bool { matches!(&self, &Hint::Single(_)) }
|
pub const fn is_single(&self) -> bool { matches!(&self, &Hint::Single(_)) }
|
||||||
|
|
||||||
|
|||||||
@ -262,7 +262,8 @@ impl FunctionEntry {
|
|||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
|
|
||||||
dyn_iter(&newtons_method_output)
|
newtons_method_output
|
||||||
|
.iter()
|
||||||
.map(|x| Value::new(*x, self.function.get(*x)))
|
.map(|x| Value::new(*x, self.function.get(*x)))
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user