pub enum GreenTree<K: Copy> {
Node(Arc<GreenNode<K>>),
Leaf(GreenLeaf<K>),
}Expand description
A green tree element - either a node or a leaf kind.
Green trees represent the immutable structure of kind trees without position information. They are designed to be cacheable and shareable across different parse trees and incremental updates.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for GreenTree<K>where
K: Freeze,
impl<K> RefUnwindSafe for GreenTree<K>where
K: RefUnwindSafe,
impl<K> Send for GreenTree<K>
impl<K> Sync for GreenTree<K>
impl<K> Unpin for GreenTree<K>where
K: Unpin,
impl<K> UnwindSafe for GreenTree<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