gio/
file_attribute_matcher.rs1use gio_sys;
2use glib::translate::*;
3use glib::GString;
4use std::iter::{IntoIterator, Iterator};
5
6pub struct FileAttributematcherIter(::FileAttributeMatcher);
7
8impl Iterator for FileAttributematcherIter {
9 type Item = GString;
10
11 fn next(&mut self) -> Option<GString> {
12 unsafe {
13 from_glib_none(gio_sys::g_file_attribute_matcher_enumerate_next(
14 self.0.to_glib_none().0,
15 ))
16 }
17 }
18}
19
20impl IntoIterator for ::FileAttributeMatcher {
21 type Item = GString;
22 type IntoIter = FileAttributematcherIter;
23
24 fn into_iter(self) -> Self::IntoIter {
25 FileAttributematcherIter(self)
26 }
27}