pub enum DataAttribute {
Scalar,
Vector,
Tensor,
Tensor6,
Matrix(usize, usize),
Generic(usize),
}Expand description
Type of the data (scalar, vector, tensor, etc.)
Variants§
Scalar
single value
Vector
3D vector (3 components)
Tensor
2nd order tensor in 3D (9 components)
Tensor6
Symmetric 2nd order tensor in 3D (6 components)
Matrix(usize, usize)
Matrix with specified number of rows and columns
Generic(usize)
Generic data with specified size
Trait Implementations§
Source§impl Clone for DataAttribute
impl Clone for DataAttribute
Source§fn clone(&self) -> DataAttribute
fn clone(&self) -> DataAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DataAttribute
Source§impl Debug for DataAttribute
impl Debug for DataAttribute
impl Eq for DataAttribute
Source§impl From<DataAttribute> for AttributeType
impl From<DataAttribute> for AttributeType
Source§fn from(data_attr: DataAttribute) -> Self
fn from(data_attr: DataAttribute) -> Self
Converts to this type from the input type.
Source§impl Hash for DataAttribute
impl Hash for DataAttribute
Source§impl PartialEq for DataAttribute
impl PartialEq for DataAttribute
impl StructuralPartialEq for DataAttribute
Auto Trait Implementations§
impl Freeze for DataAttribute
impl RefUnwindSafe for DataAttribute
impl Send for DataAttribute
impl Sync for DataAttribute
impl Unpin for DataAttribute
impl UnsafeUnpin for DataAttribute
impl UnwindSafe for DataAttribute
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