pub struct SpecialEq<T>(/* private fields */);
Expand description
Wrapper type that has special equality properties depending on the inner type specialization
Implementations§
Source§impl SpecialEq<Arc<dyn FunctionOutputField>>
impl SpecialEq<Arc<dyn FunctionOutputField>>
pub fn same_type() -> Self
pub fn from_type(dt: DataType) -> Self
pub fn map_field<F: 'static + Fn(&Field) -> PolarsResult<Field> + Send + Sync>( f: F, ) -> Self
pub fn map_fields<F: 'static + Fn(&[Field]) -> PolarsResult<Field> + Send + Sync>( f: F, ) -> Self
pub fn map_dtype<F: 'static + Fn(&DataType) -> PolarsResult<DataType> + Send + Sync>( f: F, ) -> Self
pub fn float_type() -> Self
pub fn super_type() -> Self
pub fn map_dtypes<F>(f: F) -> Self
Trait Implementations§
Source§impl<'a> Deserialize<'a> for SpecialEq<Arc<DslPlan>>
Available on crate feature serde
only.
impl<'a> Deserialize<'a> for SpecialEq<Arc<DslPlan>>
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Deserialize<'a> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature serde
only.
impl<'a> Deserialize<'a> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Deserialize<'a> for SpecialEq<Arc<dyn RenameAliasFn>>
Available on crate feature serde
only.
impl<'a> Deserialize<'a> for SpecialEq<Arc<dyn RenameAliasFn>>
Available on crate feature
serde
only.Source§fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Deserialize<'a> for SpecialEq<Series>
Available on crate feature serde
only.
impl<'a> Deserialize<'a> for SpecialEq<Series>
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BitwiseFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature bitwise
only.
impl From<BitwiseFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature
bitwise
only.Source§fn from(func: BitwiseFunction) -> Self
fn from(func: BitwiseFunction) -> Self
Converts to this type from the input type.
Source§impl From<BooleanFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
impl From<BooleanFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Source§fn from(func: BooleanFunction) -> Self
fn from(func: BooleanFunction) -> Self
Converts to this type from the input type.
Source§impl From<CategoricalFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature dtype-categorical
only.
impl From<CategoricalFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature
dtype-categorical
only.Source§fn from(func: CategoricalFunction) -> Self
fn from(func: CategoricalFunction) -> Self
Converts to this type from the input type.
Source§impl From<FunctionExpr> for SpecialEq<Arc<dyn ColumnsUdf>>
impl From<FunctionExpr> for SpecialEq<Arc<dyn ColumnsUdf>>
Source§fn from(func: FunctionExpr) -> Self
fn from(func: FunctionExpr) -> Self
Converts to this type from the input type.
Source§impl From<StringFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature strings
only.
impl From<StringFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature
strings
only.Source§fn from(func: StringFunction) -> Self
fn from(func: StringFunction) -> Self
Converts to this type from the input type.
Source§impl From<StructFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature dtype-struct
only.
impl From<StructFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature
dtype-struct
only.Source§fn from(func: StructFunction) -> Self
fn from(func: StructFunction) -> Self
Converts to this type from the input type.
Source§impl From<TemporalFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature temporal
only.
impl From<TemporalFunction> for SpecialEq<Arc<dyn ColumnsUdf>>
Available on crate feature
temporal
only.Source§fn from(func: TemporalFunction) -> Self
fn from(func: TemporalFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for SpecialEq<T>where
T: Freeze,
impl<T> RefUnwindSafe for SpecialEq<T>where
T: RefUnwindSafe,
impl<T> Send for SpecialEq<T>where
T: Send,
impl<T> Sync for SpecialEq<T>where
T: Sync,
impl<T> Unpin for SpecialEq<T>where
T: Unpin,
impl<T> UnwindSafe for SpecialEq<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more