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 duplicate 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 for ConstantType
impl PartialEq for ConstantType
impl Eq for ConstantType
impl StructuralPartialEq for ConstantType
Auto Trait Implementations§
impl Freeze for ConstantType
impl RefUnwindSafe for ConstantType
impl Send for ConstantType
impl Sync for ConstantType
impl Unpin for ConstantType
impl UnwindSafe for ConstantType
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