Allow cloning DataDescriptor (#3377)
This commit is contained in:
@@ -10,7 +10,7 @@ use std::string::String;
|
|||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
|
|
||||||
/// This specifies how data is to be initialized.
|
/// This specifies how data is to be initialized.
|
||||||
#[derive(PartialEq, Eq, Debug)]
|
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||||
pub enum Init {
|
pub enum Init {
|
||||||
/// This indicates that no initialization has been specified yet.
|
/// This indicates that no initialization has been specified yet.
|
||||||
Uninitialized,
|
Uninitialized,
|
||||||
@@ -38,6 +38,7 @@ impl Init {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A description of a data object.
|
/// A description of a data object.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct DataDescription {
|
pub struct DataDescription {
|
||||||
/// How the data should be initialized.
|
/// How the data should be initialized.
|
||||||
pub init: Init,
|
pub init: Init,
|
||||||
|
|||||||
Reference in New Issue
Block a user