pub struct LegacyVtkWriter;Expand description
Writer for the VTK legacy ASCII format (.vtk).
Implementations§
Source§impl LegacyVtkWriter
impl LegacyVtkWriter
Sourcepub fn write(grid: &VtkUnstructuredGrid) -> String
pub fn write(grid: &VtkUnstructuredGrid) -> String
Serialise a complete unstructured grid to a legacy VTK ASCII string.
Sourcepub fn write_header() -> String
pub fn write_header() -> String
Generate the standard VTK legacy file header.
Sourcepub fn write_points(points: &[[f64; 3]]) -> String
pub fn write_points(points: &[[f64; 3]]) -> String
Serialise the POINTS section.
Sourcepub fn write_cells(cells: &[Vec<usize>], cell_types: &[VtkCellTypeW]) -> String
pub fn write_cells(cells: &[Vec<usize>], cell_types: &[VtkCellTypeW]) -> String
Serialise the CELLS and CELL_TYPES sections.
Sourcepub fn write_point_data(arrays: &[VtkDataArrayW]) -> String
pub fn write_point_data(arrays: &[VtkDataArrayW]) -> String
Serialise the POINT_DATA section.
Sourcepub fn write_cell_data(arrays: &[VtkDataArrayW]) -> String
pub fn write_cell_data(arrays: &[VtkDataArrayW]) -> String
Serialise the CELL_DATA section.
Sourcepub fn write_data_array(arr: &VtkDataArrayW) -> String
pub fn write_data_array(arr: &VtkDataArrayW) -> String
Serialise a single data array in legacy VTK format.
Auto Trait Implementations§
impl Freeze for LegacyVtkWriter
impl RefUnwindSafe for LegacyVtkWriter
impl Send for LegacyVtkWriter
impl Sync for LegacyVtkWriter
impl Unpin for LegacyVtkWriter
impl UnsafeUnpin for LegacyVtkWriter
impl UnwindSafe for LegacyVtkWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.