FileTool

Trait FileTool 

Source
pub trait FileTool: Tool {
    // Required methods
    fn workspace_root(&self) -> &PathBuf;
    fn should_exclude<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for tools that operate on files

Required Methods§

Source

fn workspace_root(&self) -> &PathBuf

Get the workspace root

Source

fn should_exclude<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check if a path should be excluded

Implementors§