pub struct PartialData {
pub func: Value,
pub args: Vec<Value>,
pub keywords: IndexMap<String, Value>,
}Expand description
Backing data for Value::Partial — the bound callable + its
captured positional / keyword args. Stored behind a Box on the
Partial variant so the inline Value enum slot stays narrow.
Fields§
§func: ValueThe callable being partially applied (Function / Lambda / Class / builtin handle). Owned by value.
args: Vec<Value>Bound positional args, prepended on every dispatched call.
keywords: IndexMap<String, Value>Bound keyword args, merged into the dispatched call’s kwargs.
Trait Implementations§
Source§impl Clone for PartialData
impl Clone for PartialData
Source§fn clone(&self) -> PartialData
fn clone(&self) -> PartialData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialData
impl Debug for PartialData
Source§impl<'de> Deserialize<'de> for PartialData
impl<'de> Deserialize<'de> for PartialData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PartialData
impl !UnwindSafe for PartialData
impl Freeze for PartialData
impl Send for PartialData
impl Sync for PartialData
impl Unpin for PartialData
impl UnsafeUnpin for PartialData
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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