Struct vtkio::model::Cells[][src]

pub struct Cells {
    pub cell_verts: VertexNumbers,
    pub types: Vec<CellType>,
}

Cells with variable types.

This struct corresponds to the Cells XML element or the CELLS and CELL_TYPES entries in the legacy VTK format.

Fields

cell_verts: VertexNumbers

Cell vertices specified through offsets or simply as a contiguous array.

See VertexNumbers for details.

types: Vec<CellType>

The type of each cell represented in cell_verts.

Implementations

impl Cells[src]

pub fn num_verts(&self) -> usize[src]

Returns the total number of vertices among all the cells.

pub fn num_cells(&self) -> usize[src]

Returns the total number of cells represented.

Trait Implementations

impl Clone for Cells[src]

impl Debug for Cells[src]

impl Default for Cells[src]

impl PartialEq<Cells> for Cells[src]

impl StructuralPartialEq for Cells[src]

Auto Trait Implementations

impl RefUnwindSafe for Cells

impl Send for Cells

impl Sync for Cells

impl Unpin for Cells

impl UnwindSafe for Cells

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.