pub trait PropertiesSource {
// Required method
fn apply_to(
self,
props: &mut Properties,
path: impl AsRef<Path>,
) -> Result<(), Error>;
}Expand description
Trait for types that can add properties to a Properties map.
Required Methods§
Sourcefn apply_to(
self,
props: &mut Properties,
path: impl AsRef<Path>,
) -> Result<(), Error>
fn apply_to( self, props: &mut Properties, path: impl AsRef<Path>, ) -> Result<(), Error>
Adds properties that apply to a file at the specified path
to the provided Properties.
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.