/// Only match elements that do not have the specified id.
/// See the `Needle` documentation for more details on text matching rules.
Only match elements that do not have the specified id.
See the `Needle` documentation for more details on text matching rules.
Only match elements that do not have the specified id . See the ` Needle ` documentation for more details on text matching rules .
pub fn without_id<N>(self, id: N) -> Self
    where
        N: Needle + Clone + Send + Sync + 'static,
    {
        let ignore_errors = self.ignore_errors;
        self.with_filter(Box::new(move |elem| {
            let id = id.clone();
            Box::pin(async move {
                match elem.id().await {
                    Ok(Some(x)) => Ok(!id.is_match(&x)),
                    Ok(None) => Ok(true),
                    Err(e) => handle_errors(Err(e), ignore_errors),
                }
            })
        }))
    }
pub fn without_id < N > ( self , id : N ) -> Self where N : Needle + Clone + Send + Sync + ' static , { let ignore_errors = self . ignore_errors ; self . with_filter ( Box :: new ( move | elem | { let id = id . clone ( ) ; Box :: pin ( async move { match elem . id ( ) . await { Ok ( Some ( x ) ) => Ok ( ! id . is_match ( & x ) ) , Ok ( None ) => Ok ( true ) , Err ( e ) => handle_errors ( Err ( e ) , ignore_errors ) , } } ) } ) ) }
Only match elements that do not have the specified id.
Only match elements that do not have the specified id .
self
id
N