pub trait FileGrouping:
Debug
+ Send
+ Sync {
// Required methods
fn id(&self) -> &str;
fn groups(&self, names: &[&str]) -> Vec<NameGroup>;
// Provided method
fn badge(&self, member: &str) -> String { ... }
}Expand description
Which of a folder’s files go together: declared by the application, asked once per listing on the interface thread (the picker reads a folder there too), with names and nothing else, so that it reads no file.
Required Methods§
Sourcefn groups(&self, names: &[&str]) -> Vec<NameGroup>
fn groups(&self, names: &[&str]) -> Vec<NameGroup>
The groups among these names: the folder’s files, without folders or hidden files. What makes no sense is ignored, and the file stays an entry of its own: a name that is not there, a member that is its own main, or a file an earlier group or grouping took.