knave 0.14.21

A Lisp programming language for humans and agents that infers types and ownership and compiles to readable Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::payload_position::PayloadPosition;
use crate::core::BindingId;

#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct BoxedPayload {
    pub owner: BindingId,
    pub position: PayloadPosition,
}

impl BoxedPayload {
    pub fn at(owner: BindingId, position: PayloadPosition) -> Self {
        Self { owner, position }
    }
}