Trait vapoursynth::plugins::FilterParameter
source · [−]pub trait FilterParameter<'map, 'elem: 'map>: Sealed {
type Argument: FilterArgument<'map, 'elem>;
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
type Argument: FilterArgument<'map, 'elem>
type Argument: FilterArgument<'map, 'elem>
The underlying argument type for this parameter type.
Required Methods
fn is_optional() -> bool
fn is_optional() -> bool
Returns whether this parameter is optional.
fn 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.