pub struct StackNode {
pub value: Value,
pub next: *mut StackNode,
}Expand description
StackNode: Implementation detail of the stack
This is a linked list node that contains a Value. The key insight: StackNode is separate from Value. Users think about Values, not StackNodes.
Fields§
§value: ValueThe actual value stored in this node
next: *mut StackNodePointer to the next node in the stack (or null if this is the bottom) This pointer is ONLY for stack structure, never for variant field linking
Auto Trait Implementations§
impl Freeze for StackNode
impl RefUnwindSafe for StackNode
impl !Send for StackNode
impl !Sync for StackNode
impl Unpin for StackNode
impl UnwindSafe for StackNode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more