pub enum DataType {
String,
Float,
Int,
Bool,
}
Expand description
A plain enumeration of the possible data types used in SoR
, this one
without its accompanying value.
Variants
String
Has the highest data type precedence.
Float
Has the second highest data type precedence.
Int
Has the third highest data type precedence.
Bool
Has the fourth highest data type precedence.
Trait Implementations
sourceimpl DeepSizeOf for DataType
impl DeepSizeOf for DataType
sourcefn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object. This does not include the size of the object itself. Read more
sourcefn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the object, including heap-managed storage. Read more
sourcefn recurse_deep_size_of(&self, context: &mut Context) -> usize
fn recurse_deep_size_of(&self, context: &mut Context) -> usize
use std::mem::size_of_val(val) + val.deep_size_of_children()
instead
Deprecated: equivalent to std::mem::size_of_val(val) + val.deep_size_of_children()
sourceimpl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DataType
Auto Trait Implementations
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more