pub trait Datapath{
// Required methods
fn with_file(&self, file: impl Into<String>) -> DatapathFile<Self>;
fn parse(path: &str) -> Option<DatapathFile<Self>>;
}Required Methods§
Sourcefn with_file(&self, file: impl Into<String>) -> DatapathFile<Self>
fn with_file(&self, file: impl Into<String>) -> DatapathFile<Self>
Returns a DatapathFile with the given file at this datapath
Sourcefn parse(path: &str) -> Option<DatapathFile<Self>>
fn parse(path: &str) -> Option<DatapathFile<Self>>
Parse a string as this datapath with a (possibly empty-string)
file, returning None if this string is invalid.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.