pub trait ConfigUnit:
Sized
+ Send
+ Sync
+ FromStr {
// Required method
fn from_resolved(v: ResolvedValue) -> Option<Self>;
}Expand description
A trait for types that can be resolved from a configuration string.
Any type implementing this trait must also implement FromStr (for static parsing).
Required Methods§
Sourcefn from_resolved(v: ResolvedValue) -> Option<Self>
fn from_resolved(v: ResolvedValue) -> Option<Self>
Converts a ResolvedValue into the target type, returning None if the conversion fails.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".