Components
Components (경로 구성 요소 반복자 구조체)
Path의 Component들을 순회하는 반복자예요.
출처: Rust 공식 문서
본문
이 구조체는 Path의 components 메서드에 의해 생성돼요. 자세한 내용은 해당 메서드 문서를 참고하세요.
pub struct Components<'a> { /* private fields */ }
예시
use std::path::Path;
let path = Path::new("/tmp/foo/bar.txt");
let mut iter = path.components();