pub trait ExpandTilde: Sealed {
// Required method
fn expand_tilde(&self) -> Result<PathBuf>;
}Expand description
Represents paths that can be expanded (sealed extension trait).
Required Methods§
sourcefn expand_tilde(&self) -> Result<PathBuf>
fn expand_tilde(&self) -> Result<PathBuf>
Expands the tilde (~) component to the home directory.
§Errors
Returns an error if the home directory cannot be found.