WatchFileFormat

Trait WatchFileFormat 

Source
pub trait WatchFileFormat {
    type Entry: WatchEntry;

    // Required methods
    fn version(&self) -> u32;
    fn entries(&self) -> Box<dyn Iterator<Item = Self::Entry> + '_>;
    fn to_string(&self) -> String;
}
Expand description

Common trait for all watch file format versions

Required Associated Types§

Source

type Entry: WatchEntry

The type used to represent individual watch entries

Required Methods§

Source

fn version(&self) -> u32

Returns the version of the watch file (1-5)

Source

fn entries(&self) -> Box<dyn Iterator<Item = Self::Entry> + '_>

Returns an iterator over all entries in the watch file

Source

fn to_string(&self) -> String

Convert the watch file back to its string representation

Implementors§