1 2 3 4 5 6 7 8 9 10 11
use super::*; impl Materializer for Frag { fn merge(&mut self, other: &Self) { if let Frag::Base(ref mut base) = self { base.apply(other); } else { panic!("expected base to be the first node"); } } }