Type Definition vtkio::model::FieldArray[][src]

type FieldArray = DataArrayBase<u32>;

A data array whose elements have a number of components given by the integer elem.

This is the most “unopinionated” version of a DataArrayBase in that it doesn’t assume a purpose for the associated buffer.

Implementations

impl FieldArray[src]

pub fn new(name: impl Into<String>, num_comp: u32) -> FieldArray[src]

Constructs an empty field array with the given number of components.

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

Returns the number of components per element.

This is equal to self.len() / self.num_elem().

Trait Implementations

impl Default for FieldArray[src]