1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::dsl::{BinaryUdfOutputField, NoEq, SeriesBinaryUdf};
use crate::logical_plan::Context;
use polars_core::prelude::*;
use std::sync::Arc;

impl Default for NoEq<Arc<dyn SeriesBinaryUdf>> {
    fn default() -> Self {
        panic!("implementation error");
    }
}

impl Default for NoEq<Arc<dyn BinaryUdfOutputField>> {
    fn default() -> Self {
        let output_field = move |_: &Schema, _: Context, _: &Field, _: &Field| None;
        NoEq::new(Arc::new(output_field))
    }
}