use std::cell::Cell; use crate::innerlude::*; // create a cell with a "none" value #[inline] pub fn empty_cell() -> Cell> { Cell::new(None) } // /// A helper type that lets scopes be ordered by their height // #[derive(Debug, Clone, Copy, PartialEq, Eq)] // pub struct HeightMarker { // pub idx: ScopeId, // pub height: u32, // } // impl Ord for HeightMarker { // fn cmp(&self, other: &Self) -> std::cmp::Ordering { // self.height.cmp(&other.height) // } // } // impl PartialOrd for HeightMarker { // fn partial_cmp(&self, other: &Self) -> Option { // Some(self.cmp(other)) // } // }