/// Create a new filter from a decomposed URL.
///
/// Note that the decomposition is ambiguous, so
/// [`create_filter_from_query_pair`](OperatorSet::create_filter_from_query_pair)
/// is often preferable. The ambiguity arises because there may be
/// no operator part, and the field part may have arbitrarily many
/// parts.  Since everything is separated with double underscores
/// there is no way without additional information to distinguish
/// an expression with an explicit operator from an expression on
/// a nested field with an implicit operator.  Here
/// - `field` is the field specification part of the string,
///    including any nested fields.
/// - `operator` is the operator specification, if any.
/// - `rhs` is the argument part, after the `=` in the URL
///    section.
Create a new filter from a decomposed URL.
Note that the decomposition is ambiguous, so
[`create_filter_from_query_pair`](OperatorSet::create_filter_from_query_pair)
is often preferable. The ambiguity arises because there may be
no operator part, and the field part may have arbitrarily many
parts.  Since everything is separated with double underscores
there is no way without additional information to distinguish
an expression with an explicit operator from an expression on
a nested field with an implicit operator.  Here
`field` is the field specification part of the string,
including any nested fields.
`operator` is the operator specification, if any.
`rhs` is the argument part, after the `=` in the URL
section.
Create a new filter from a decomposed URL . Note that the decomposition is ambiguous so [ ` create_filter_from_query_pair ` ] ( OperatorSet :: create_filter_from_query_pair ) is often preferable . The ambiguity arises because there may be no operator part and the field part may have arbitrarily many parts . Since everything is separated with double underscores there is no way without additional information to distinguish an expression with an explicit operator from an expression on a nested field with an implicit operator . Here ` field ` is the field specification part of the string including any nested fields . ` operator ` is the operator specification if any . ` rhs ` is the argument part after the ` = ` in the URL section .
pub fn create_filter(
        &self,
        field: &str,
        operator: Option<&str>,
        rhs: &str,
    ) -> Result<Box<dyn Filter<R> + 'a>, FilterError> {
        let lhs = if let Some(op) = operator {
            format!("{}__{}", field, op)
        } else {
            field.to_string()
        };
        self.create_filter_from_query_pair(&lhs, rhs)
    }
pub fn create_filter ( & self , field : & str , operator : Option < & str > , rhs : & str , ) -> Result < Box < dyn Filter < R > + ' a > , FilterError > { let lhs = if let Some ( op ) = operator { format ! ( " " field op ) } else { field . to_string ( ) } ; self . create_filter_from_query_pair ( & lhs , rhs ) }
Create a new filter from a decomposed URL.
Create a new filter from a decomposed URL .
&self
field
&str
operator
Option<&str>
rhs
&str