Skip to main content

Expand

Trait Expand 

Source
pub trait Expand<T, P: AsRef<Path>> {
    // Required method
    fn expand(self, base: P) -> T;
}
Expand description

此 trait 用于提取缩减表示的原始展开,例如路径通配符的展开

Required Methods§

Source

fn expand(self, base: P) -> T

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<P: AsRef<Path>> Expand<Result<Vec<PathBuf>, Error>, P> for Vec<String>

Source§

fn expand(self, base: P) -> Result<Vec<PathBuf>>

Implementors§