pub enum RedTree<K: Copy> {
    Node(RedNode<K>),
    Leaf(RedLeaf<K>),
}Expand description
A red tree element with absolute position information.
Red trees are the position-aware representation of kind trees, computed by applying offsets to green trees. They are used for incremental parsing, error reporting, and diagnostics.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for RedTree<K>where
    K: Freeze,
impl<K> RefUnwindSafe for RedTree<K>where
    K: RefUnwindSafe,
impl<K> Send for RedTree<K>
impl<K> Sync for RedTree<K>
impl<K> Unpin for RedTree<K>where
    K: Unpin,
impl<K> UnwindSafe for RedTree<K>where
    K: UnwindSafe + RefUnwindSafe,
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