pub struct PairData {
pub car: Value,
pub cdr: Value,
pub pos: Option<Position>,
}Expand description
Pair data (car and cdr)
Separated from Value::Pair to allow mutation via GcCell.
Fields§
§car: Value§cdr: Value§pos: Option<Position>Source position (for error reporting)
Tracks where this pair (list expression) was parsed from. Used to provide accurate error locations for expressions inside functions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PairData
impl !RefUnwindSafe for PairData
impl !Send for PairData
impl !Sync for PairData
impl Unpin for PairData
impl !UnwindSafe for PairData
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