pub trait IntoStorePath {
// Required method
fn into_store_path(self) -> Result<StorePath, StorePathError>;
}Expand description
What a call can be given where a path is wanted.
A list of levels, or a path already built. Deliberately not &str: a string
is a name, and letting one stand in for a path is the confusion this type
exists to end - store.get(["ui", "width"]) and store.get("ui.width")
would otherwise look alike and mean different things.
Required Methods§
fn into_store_path(self) -> Result<StorePath, StorePathError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".