Struct vtkio::xml::DataArray [−][src]
Fields
scalar_type: ScalarType
name: String
format: DataArrayFormat
offset: Option<u32>
num_comp: u32
range_min: Option<f64>
range_max: Option<f64>
data: Vec<Data>
Implementations
impl DataArray
[src]
pub fn from_model_data_array(data: DataArray, ei: EncodingInfo) -> Self
[src]
Construct a binary DataArray
from a given model::DataArray
.
pub fn from_field_array(field: FieldArray, ei: EncodingInfo) -> Self
[src]
Construct a binary DataArray
from a given model::FieldArray
.
pub fn from_io_buffer(buf: IOBuffer, ei: EncodingInfo) -> Self
[src]
Construct a binary DataArray
from a given model::IOBuffer
.
pub fn with_name(self, name: impl Into<String>) -> Self
[src]
Returns the given DataArray
with name set to name
.
pub fn with_num_comp(self, num_comp: u32) -> Self
[src]
Returns the given DataArray
with the given number of components num_comp
.
pub fn into_field_array(
self,
l: usize,
appended: Option<&AppendedData>,
ei: EncodingInfo
) -> Result<FieldArray, ValidationError>
[src]
self,
l: usize,
appended: Option<&AppendedData>,
ei: EncodingInfo
) -> Result<FieldArray, ValidationError>
Convert this data array into a model::FieldArray
type.
The given arguments are the number of elements (not bytes) in the expected output buffer and an optional appended data reference.
pub fn into_model_data_array(
self,
l: usize,
appended: Option<&AppendedData>,
info: &AttributeInfo,
ei: EncodingInfo
) -> Result<DataArray, ValidationError>
[src]
self,
l: usize,
appended: Option<&AppendedData>,
info: &AttributeInfo,
ei: EncodingInfo
) -> Result<DataArray, ValidationError>
Convert this data array into a model::DataArray
type.
The given arguments are the number of elements (not bytes) in the expected output buffer and an optional appended data reference.
pub fn into_io_buffer(
self,
num_elements: usize,
appended: Option<&AppendedData>,
ei: EncodingInfo
) -> Result<IOBuffer, ValidationError>
[src]
self,
num_elements: usize,
appended: Option<&AppendedData>,
ei: EncodingInfo
) -> Result<IOBuffer, ValidationError>
Convert this data array into an IOBuffer
.
This is the same as into_field_array
but only keeps the IOBuffer
part.
pub fn into_attribute(
self,
num_elements: usize,
appended: Option<&AppendedData>,
info: &AttributeInfo,
ei: EncodingInfo
) -> Result<Attribute, ValidationError>
[src]
self,
num_elements: usize,
appended: Option<&AppendedData>,
info: &AttributeInfo,
ei: EncodingInfo
) -> Result<Attribute, ValidationError>
Trait Implementations
impl Clone for DataArray
[src]
impl Debug for DataArray
[src]
impl Default for DataArray
[src]
impl<'de> Deserialize<'de> for DataArray
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<DataArray> for DataArray
[src]
impl Serialize for DataArray
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for DataArray
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataArray
impl Send for DataArray
impl Sync for DataArray
impl Unpin for DataArray
impl UnwindSafe for DataArray
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,