pub struct ClosureValue {
pub target: DefinitionId,
pub env: Vec<ClosureEnvEntry>,
}Expand description
The payload of a Value::Closure — the fn token plus its bound-arg
prefix (docs/t1c-spec.md §1/§6).
Fields§
§target: DefinitionIdThe target function’s DefinitionId (the fn token).
env: Vec<ClosureEnvEntry>The bound-arg prefix, in the target’s declared param order. The entries carry the param name and mode deliberately (spec §6): on load/invoke after a recompile they are validated against the current signature so a renamed/re-moded param faults cleanly instead of silently misbinding.
Trait Implementations§
Source§impl Clone for ClosureValue
impl Clone for ClosureValue
Source§fn clone(&self) -> ClosureValue
fn clone(&self) -> ClosureValue
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 ClosureValue
impl Debug for ClosureValue
Source§impl<'de> Deserialize<'de> for ClosureValue
impl<'de> Deserialize<'de> for ClosureValue
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
Source§impl PartialEq for ClosureValue
impl PartialEq for ClosureValue
Source§impl Serialize for ClosureValue
impl Serialize for ClosureValue
impl StructuralPartialEq for ClosureValue
Auto Trait Implementations§
impl Freeze for ClosureValue
impl RefUnwindSafe for ClosureValue
impl Send for ClosureValue
impl Sync for ClosureValue
impl Unpin for ClosureValue
impl UnsafeUnpin for ClosureValue
impl UnwindSafe for ClosureValue
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