Skip to content

ndarray::iter::Iter doesn't implement Debug #1204

Closed

Description

@liam-clink

The title says it. What I was trying to do when I discovered this was print a zip of a range and an ndarray.

Like so:

let foo = ndarray::Array1::<f64>::zeros(100);
println!("{:?}", std::iter::zip(0..foo.len(), &foo);

Activity

  1. nilgoyette commented on May 27, 2023

    @nilgoyette
    Collaborator

    I never thought of printing an iterator before! Anyway, as per the official documentation:

    fmt::Debug implementations should be implemented for all public types.

    So, yeah, I guess we should do it.

  2. added
    good first issue
    on May 27, 2023
  3. biskwikman commented on Jan 26, 2024

    @biskwikman
    Contributor

    I'm not very experienced with Rust projects, but I'd like to try to implement this. Is Iter found in the iterators/mod.rs file?

  4. nilgoyette commented on Jan 26, 2024

    @nilgoyette
    Collaborator

    Yes, probably. Just clone the project and test, you will see.

  5. bluss commented on Mar 11, 2024

    @bluss
    Member

    Fixed in #1353, thanks and thanks @nilgoyette for mentoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions