Skip to content

Instantly share code, notes, and snippets.

View noritada's full-sized avatar

Noritada Kobayashi noritada

View GitHub Profile
@noritada
noritada / Rust_Iterator_trait_methods.md
Created March 21, 2022 10:27
Rust Iterator trait methods call graph

This is a call graph of Iterator methods in Rust, based on Rust 1.59. The purpose of this graph is not to show detailed call relationships, but to visualize roughly what methods other than next() are often reimplemented and what methods are often called internally.

Rustの Iterator のメソッド群のコールグラフです。Rust 1.59に基づいています。 詳細な呼び出し関係を示すためではなく、 next() 以外にどのようなメソッドがよく再実装されているか、どのようなメソッドが内部的によく呼び出されているかを大雑把に可視化する目的で作ったものです。

graph LR
    subgraph I: Iterator
        I::next