Skip to main content

count_draft

Function count_draft 

Source
pub fn count_draft(
    items: &[Item],
    folders: &FolderIndex,
    roots: &[SmartFolder],
    parent: Option<&str>,
    conditions: &[Value],
) -> usize
Expand description

How many live items a smart folder with conditions would show inside parent (its ancestors’ conditions apply too), for the dialog’s live count while the rules are edited, as Eagle’s dialog counts them. Empty conditions count nothing, as a group with no children shows nothing.