Enum air_script_core::ConstantType
source · pub enum ConstantType {
Scalar(u64),
Vector(Vec<u64>),
Matrix(Vec<Vec<u64>>),
}
Expand description
Type of constant. Constants can be of 3 types:
- Scalar: 123
- Vector: [1, 2, 3]
- Matrix: [[1, 2, 3], [4, 5, 6]]
Variants§
Trait Implementations§
source§impl Clone for ConstantType
impl Clone for ConstantType
source§fn clone(&self) -> ConstantType
fn clone(&self) -> ConstantType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstantType
impl Debug for ConstantType
source§impl PartialEq<ConstantType> for ConstantType
impl PartialEq<ConstantType> for ConstantType
source§fn eq(&self, other: &ConstantType) -> bool
fn eq(&self, other: &ConstantType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.