foundry_cli::utils

Trait FoundryPathExt

Source
pub trait FoundryPathExt {
    // Required methods
    fn is_sol_test(&self) -> bool;
    fn is_sol(&self) -> bool;
    fn is_yul(&self) -> bool;
}
Expand description

Useful extensions to std::path::Path.

Required Methods§

Source

fn is_sol_test(&self) -> bool

Returns true if the Path ends with .t.sol

Source

fn is_sol(&self) -> bool

Returns true if the Path has a sol extension

Source

fn is_yul(&self) -> bool

Returns true if the Path has a yul extension

Implementors§