pub struct FieldData { /* private fields */ }Expand description
A named, heterogeneous collection of data arrays.
Analogous to VTK’s vtkFieldData.
Implementations§
Source§impl FieldData
impl FieldData
pub fn new() -> Self
pub fn add_array(&mut self, array: AnyDataArray)
pub fn get_array(&self, name: &str) -> Option<&AnyDataArray>
pub fn get_array_mut(&mut self, name: &str) -> Option<&mut AnyDataArray>
pub fn get_array_by_index(&self, idx: usize) -> Option<&AnyDataArray>
pub fn num_arrays(&self) -> usize
pub fn iter(&self) -> impl Iterator<Item = &AnyDataArray>
pub fn remove_array(&mut self, name: &str) -> Option<AnyDataArray>
Trait Implementations§
impl StructuralPartialEq for FieldData
Auto Trait Implementations§
impl Freeze for FieldData
impl RefUnwindSafe for FieldData
impl Send for FieldData
impl Sync for FieldData
impl Unpin for FieldData
impl UnsafeUnpin for FieldData
impl UnwindSafe for FieldData
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more