warn(LegacyXmlWarning::MissingData);
}
- for child in &graph.facet_layout.children {
- let FacetLayoutChild::SetCellProperties(scp) = child else {
- continue;
- };
-
+ for scp in graph
+ .facet_layout
+ .children
+ .iter()
+ .filter_map(|child| child.set_cell_properties())
+ {
#[derive(Copy, Clone, Debug, PartialEq)]
enum TargetType {
Labeling,
}
impl FacetLayoutChild {
+ fn set_cell_properties(&self) -> Option<&SetCellProperties> {
+ match self {
+ Self::SetCellProperties(scp) => Some(scp),
+ _ => None,
+ }
+ }
fn facet_level(&self) -> Option<&FacetLevel> {
match self {
Self::FacetLevel(facet_level) => Some(facet_level),