Skip to main content

IntoStorePath

Trait IntoStorePath 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S: AsRef<str>, const N: usize> IntoStorePath for [S; N]

Source§

impl<S: AsRef<str>> IntoStorePath for &[S]

Source§

impl<S: AsRef<str>> IntoStorePath for Vec<S>

Implementors§