Closed
Description
To more compactly store the children, we box both interior nodes and tokens, and represent
Either<Arc<Node>, Arc<Token>>
as a single pointer with a tag in the last bit.
However
In particular
static_assert!(mem::size_of::<GreenChild>() == mem::size_of::<usize>() * 2);
type Repr = HeaderSlice<GreenNodeHead, [GreenChild]>;
pub struct GreenNode {
ptr: ThinArc<GreenNodeHead, GreenChild>,
}
It doesn't look like it does what the docs are saying.
Activity