impl Hyperstring { pub fn transclusions(&self) -> Vec<String> { self.0 .iter() .filter_map(|segment| { if let HyperstringSegment::Transclusion(transclusion) = segment { Some(transclusion.clone()) } else { None } }) .collect() } }