|
@@ -3,7 +3,6 @@ use std::{collections::HashMap, fmt::Display, slice::{SliceIndex, Iter, IterMut}
|
|
use crate::Shared;
|
|
use crate::Shared;
|
|
|
|
|
|
#[cfg(not(feature = "serde"))]
|
|
#[cfg(not(feature = "serde"))]
|
|
-#[cfg(not(feature = "point"))]
|
|
|
|
#[derive(Debug, PartialEq, Clone)]
|
|
#[derive(Debug, PartialEq, Clone)]
|
|
pub enum Data {
|
|
pub enum Data {
|
|
None,
|
|
None,
|
|
@@ -26,7 +25,6 @@ pub enum Data {
|
|
}
|
|
}
|
|
|
|
|
|
#[cfg(feature="serde")]
|
|
#[cfg(feature="serde")]
|
|
-#[cfg(not(feature = "point"))]
|
|
|
|
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize)]
|
|
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize)]
|
|
pub enum Data {
|
|
pub enum Data {
|
|
None,
|
|
None,
|
|
@@ -48,64 +46,6 @@ pub enum Data {
|
|
Map(HashMap<String, Data>),
|
|
Map(HashMap<String, Data>),
|
|
}
|
|
}
|
|
|
|
|
|
-#[cfg(not(feature = "serde"))]
|
|
|
|
-#[cfg(feature = "point")]
|
|
|
|
-#[derive(Debug, PartialEq, Clone)]
|
|
|
|
-pub enum Data {
|
|
|
|
- None,
|
|
|
|
- String(String),
|
|
|
|
- I8(i8),
|
|
|
|
- I16(i16),
|
|
|
|
- I32(i32),
|
|
|
|
- I64(i64),
|
|
|
|
- I128(i128),
|
|
|
|
- U8(u8),
|
|
|
|
- U16(u16),
|
|
|
|
- U32(u32),
|
|
|
|
- U64(u64),
|
|
|
|
- U128(u128),
|
|
|
|
- F32(f32),
|
|
|
|
- F64(f64),
|
|
|
|
- Bool(bool),
|
|
|
|
- Vec(Vec<Data>),
|
|
|
|
- Map(HashMap<String, Data>),
|
|
|
|
- PI32(Point<i32>),
|
|
|
|
- PI64(Point<i64>),
|
|
|
|
- PI128(Point<i128>),
|
|
|
|
- PU32(Point<u32>),
|
|
|
|
- PU64(Point<u64>),
|
|
|
|
- PU128(Point<u128>),
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-#[cfg(feature="serde")]
|
|
|
|
-#[cfg(feature = "point")]
|
|
|
|
-#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize)]
|
|
|
|
-pub enum Data {
|
|
|
|
- None,
|
|
|
|
- String(String),
|
|
|
|
- I8(i8),
|
|
|
|
- I16(i16),
|
|
|
|
- I32(i32),
|
|
|
|
- I64(i64),
|
|
|
|
- I128(i128),
|
|
|
|
- U8(u8),
|
|
|
|
- U16(u16),
|
|
|
|
- U32(u32),
|
|
|
|
- U64(u64),
|
|
|
|
- U128(u128),
|
|
|
|
- F32(f32),
|
|
|
|
- F64(f64),
|
|
|
|
- Bool(bool),
|
|
|
|
- Vec(Vec<Data>),
|
|
|
|
- Map(HashMap<String, Data>),
|
|
|
|
- PI32(Point<i32>),
|
|
|
|
- PI64(Point<i64>),
|
|
|
|
- PI128(Point<i128>),
|
|
|
|
- PU32(Point<u32>),
|
|
|
|
- PU64(Point<u64>),
|
|
|
|
- PU128(Point<u128>),
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
impl Default for Data {
|
|
impl Default for Data {
|
|
fn default() -> Self {
|
|
fn default() -> Self {
|
|
Self::None
|
|
Self::None
|