Data

Trait Data 

Source
pub trait Data:
    Clone
    + Debug
    + Send
    + Sized
    + 'static {
    type Vec: ListVec<Self>;
    type DynamicType;

    // Required method
    fn new_vec(_type: Self::DynamicType) -> Self::Vec;
}

Required Associated Types§

Source

type Vec: ListVec<Self>

Source

type DynamicType

Required Methods§

Source

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Data for bool

Source§

type Vec = Vec<bool>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for f32

Source§

type Vec = Vec<f32>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for f64

Source§

type Vec = Vec<f64>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for i8

Source§

type Vec = Vec<i8>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for i16

Source§

type Vec = Vec<i16>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for i32

Source§

type Vec = Vec<i32>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for i64

Source§

type Vec = Vec<i64>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for u8

Source§

type Vec = Vec<u8>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for u16

Source§

type Vec = Vec<u16>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for u32

Source§

type Vec = Vec<u32>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for u64

Source§

type Vec = Vec<u64>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for ()

Source§

type Vec = Vec<()>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for String

Source§

impl Data for [u8; 0]

Source§

type Vec = Vec<[u8; 0]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 1]

Source§

type Vec = Vec<[u8; 1]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 2]

Source§

type Vec = Vec<[u8; 2]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 3]

Source§

type Vec = Vec<[u8; 3]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 4]

Source§

type Vec = Vec<[u8; 4]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 5]

Source§

type Vec = Vec<[u8; 5]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 6]

Source§

type Vec = Vec<[u8; 6]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 7]

Source§

type Vec = Vec<[u8; 7]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 8]

Source§

type Vec = Vec<[u8; 8]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 9]

Source§

type Vec = Vec<[u8; 9]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 10]

Source§

type Vec = Vec<[u8; 10]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 11]

Source§

type Vec = Vec<[u8; 11]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 12]

Source§

type Vec = Vec<[u8; 12]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 13]

Source§

type Vec = Vec<[u8; 13]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 14]

Source§

type Vec = Vec<[u8; 14]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 15]

Source§

type Vec = Vec<[u8; 15]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 16]

Source§

type Vec = Vec<[u8; 16]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 17]

Source§

type Vec = Vec<[u8; 17]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 18]

Source§

type Vec = Vec<[u8; 18]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 19]

Source§

type Vec = Vec<[u8; 19]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 20]

Source§

type Vec = Vec<[u8; 20]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 21]

Source§

type Vec = Vec<[u8; 21]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 22]

Source§

type Vec = Vec<[u8; 22]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 23]

Source§

type Vec = Vec<[u8; 23]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 24]

Source§

type Vec = Vec<[u8; 24]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 25]

Source§

type Vec = Vec<[u8; 25]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 26]

Source§

type Vec = Vec<[u8; 26]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 27]

Source§

type Vec = Vec<[u8; 27]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 28]

Source§

type Vec = Vec<[u8; 28]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 29]

Source§

type Vec = Vec<[u8; 29]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 30]

Source§

type Vec = Vec<[u8; 30]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 31]

Source§

type Vec = Vec<[u8; 31]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl Data for [u8; 32]

Source§

type Vec = Vec<[u8; 32]>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl<A> Data for (A,)
where A: Data,

Source§

type Vec = Vec<(A,)>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl<A, B> Data for (A, B)
where A: Data, B: Data,

Source§

impl<A, B, C> Data for (A, B, C)
where A: Data, B: Data, C: Data,

Source§

impl<A, B, C, D> Data for (A, B, C, D)
where A: Data, B: Data, C: Data, D: Data,

Source§

impl<A, B, C, D, E> Data for (A, B, C, D, E)
where A: Data, B: Data, C: Data, D: Data, E: Data,

Source§

impl<A, B, C, D, E, F> Data for (A, B, C, D, E, F)
where A: Data, B: Data, C: Data, D: Data, E: Data, F: Data,

Source§

impl<A, B, C, D, E, F, G> Data for (A, B, C, D, E, F, G)
where A: Data, B: Data, C: Data, D: Data, E: Data, F: Data, G: Data,

Source§

impl<A, B, C, D, E, F, G, H> Data for (A, B, C, D, E, F, G, H)
where A: Data, B: Data, C: Data, D: Data, E: Data, F: Data, G: Data, H: Data,

Source§

impl<A, B, C, D, E, F, G, H, I> Data for (A, B, C, D, E, F, G, H, I)
where A: Data, B: Data, C: Data, D: Data, E: Data, F: Data, G: Data, H: Data, I: Data,

Source§

impl<A, B, C, D, E, F, G, H, I, J> Data for (A, B, C, D, E, F, G, H, I, J)
where A: Data, B: Data, C: Data, D: Data, E: Data, F: Data, G: Data, H: Data, I: Data, J: Data,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> Data for (A, B, C, D, E, F, G, H, I, J, K)
where A: Data, B: Data, C: Data, D: Data, E: Data, F: Data, G: Data, H: Data, I: Data, J: Data, K: Data,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> Data for (A, B, C, D, E, F, G, H, I, J, K, L)
where A: Data, B: Data, C: Data, D: Data, E: Data, F: Data, G: Data, H: Data, I: Data, J: Data, K: Data, L: Data,

Source§

impl<K, V, S> Data for HashMap<K, V, S>
where K: Hash + Eq + Data, V: Data, S: BuildHasher + Clone + Default + Send + 'static,

Source§

type Vec = Vec<HashMap<K, V, S>>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl<T> Data for Option<T>
where T: Data,

Source§

type Vec = Vec<Option<T>>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Source§

impl<T> Data for Box<T>
where T: Data,

Source§

type Vec = Vec<Box<T>>

Source§

type DynamicType = ()

Source§

fn new_vec(_type: Self::DynamicType) -> Self::Vec

Implementors§

Source§

impl Data for Decimal

Source§

impl Data for IpAddr

Source§

impl Data for Value

Source§

type Vec = ValueVec

Source§

type DynamicType = ValueType

Source§

impl Data for Bson

Source§

impl Data for Date

Source§

impl Data for DateTime

Source§

impl Data for DateTimeWithoutTimezone

Source§

impl Data for DateWithoutTimezone

Source§

impl Data for Enum

Source§

impl Data for Group

Source§

impl Data for Json

Source§

impl Data for Time

Source§

impl Data for TimeWithoutTimezone

Source§

impl Data for Timezone

Source§

impl Data for Url

Source§

impl Data for Webpage<'static>

Source§

impl<T> Data for List<T>
where T: Data,