Enum PartitionTargetCallback
pub enum PartitionTargetCallback {
Rust(SpecialEq<Arc<dyn Fn(PartitionTargetContext) -> Result<PathBuf, PolarsError> + Sync + Send>>),
Python(PythonObject),
}
Variants§
Rust(SpecialEq<Arc<dyn Fn(PartitionTargetContext) -> Result<PathBuf, PolarsError> + Sync + Send>>)
Python(PythonObject)
Available on crate feature
python
only.Implementations§
§impl PartitionTargetCallback
impl PartitionTargetCallback
pub fn call(&self, ctx: PartitionTargetContext) -> Result<PathBuf, PolarsError>
Trait Implementations§
§impl Clone for PartitionTargetCallback
impl Clone for PartitionTargetCallback
§fn clone(&self) -> PartitionTargetCallback
fn clone(&self) -> PartitionTargetCallback
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for PartitionTargetCallback
impl Debug for PartitionTargetCallback
§impl<'de> Deserialize<'de> for PartitionTargetCallback
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for PartitionTargetCallback
Available on crate feature
serde
only.§fn deserialize<D>(
_deserializer: D,
) -> Result<PartitionTargetCallback, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
_deserializer: D,
) -> Result<PartitionTargetCallback, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for PartitionTargetCallback
impl PartialEq for PartitionTargetCallback
§impl Serialize for PartitionTargetCallback
Available on crate feature serde
only.
impl Serialize for PartitionTargetCallback
Available on crate feature
serde
only.§fn serialize<S>(
&self,
_serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
_serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PartitionTargetCallback
Auto Trait Implementations§
impl Freeze for PartitionTargetCallback
impl !RefUnwindSafe for PartitionTargetCallback
impl Send for PartitionTargetCallback
impl Sync for PartitionTargetCallback
impl Unpin for PartitionTargetCallback
impl !UnwindSafe for PartitionTargetCallback
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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