conspire/geometry/mesh/write/vtk/
mod.rs1pub(crate) mod multi_block;
2pub(crate) mod unstructured;
3
4use crate::io::write::Compression;
5use std::path::Path;
6
7pub enum Vtk<P>
8where
9 P: AsRef<Path>,
10{
11 UnstructuredGrid(Compression<P>),
12 MultiBlock(Compression<P>),
13}
14
15impl<P> AsRef<Path> for Vtk<P>
16where
17 P: AsRef<Path>,
18{
19 fn as_ref(&self) -> &Path {
20 match self {
21 Vtk::UnstructuredGrid(grid) => grid.as_ref(),
22 Vtk::MultiBlock(multi_block) => multi_block.as_ref(),
23 }
24 }
25}