pub trait FilterParameter<'map, 'elem: 'map>: Sealed {
type Argument: FilterArgument<'map, 'elem>;
// Required methods
fn is_array() -> bool;
fn is_optional() -> bool;
fn get_from_map(map: &'map Map<'elem>, key: &str) -> Self;
}Expand description
An internal trait representing a filter parameter type (argument type + whether it’s an array or optional).
Required Associated Types§
Sourcetype Argument: FilterArgument<'map, 'elem>
type Argument: FilterArgument<'map, 'elem>
The underlying argument type for this parameter type.
Required Methods§
Sourcefn is_optional() -> bool
fn is_optional() -> bool
Returns whether this parameter is optional.
Sourcefn get_from_map(map: &'map Map<'elem>, key: &str) -> Self
fn get_from_map(map: &'map Map<'elem>, key: &str) -> Self
Retrieves this parameter from the given map.
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.