Consistent naming of methods.

This commit is contained in:
Stephen Chung
2020-05-13 20:22:05 +08:00
parent 5a02548ebc
commit 9d8d074940
8 changed files with 18 additions and 34 deletions

View File

@@ -14,7 +14,7 @@ fn reg_range<T: Variant + Clone>(lib: &mut Module)
where
Range<T>: Iterator<Item = T>,
{
lib.set_iterator(
lib.set_iter(
TypeId::of::<Range<T>>(),
Box::new(|source| {
Box::new(source.cast::<Range<T>>().map(|x| x.into_dynamic()))
@@ -58,7 +58,7 @@ where
T: Variant + Clone + PartialOrd,
StepRange<T>: Iterator<Item = T>,
{
lib.set_iterator(
lib.set_iter(
TypeId::of::<StepRange<T>>(),
Box::new(|source| {
Box::new(source.cast::<StepRange<T>>().map(|x| x.into_dynamic()))