Skip to content

Change I: Iterator to I: IntoIterator #2

@jerry73204

Description

@jerry73204

Consensus::model() for example, using I: IntoIterator instead of I: Iterator allows users to pass a vector directly. It gives us some convenient to avoid writing data.into_iter().

let data = vec![a, b, c];
consensus.model(&estimator, data);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions