pub enum DataType {
}Variants§
Undetermined
Special variant not aimed to be explicitly used, it corresponds to the case a value Vec or Option didn’t contain any data, so is not determinable. It always matches other data type, including itself.
Void
I8
I16
I32
I64
I128
U8
U16
U32
U64
U128
F32
F64
Bool
Byte
Char
String
Vec(Box<DataType>)
Option(Box<DataType>)
Data(Arc<dyn Data>)
Implementations§
Source§impl DataType
impl DataType
pub fn implements(&self, data_trait: &DataTrait) -> bool
pub fn bounded_min(&self) -> Value
pub fn bounded_max(&self) -> Value
pub fn float_infinity(&self) -> Value
pub fn float_neg_infinity(&self) -> Value
pub fn float_nan(&self) -> Value
pub fn deserialize( &self, deserializer: &mut dyn Deserializer<'_>, ) -> Result<Value, Error>
Trait Implementations§
Source§impl From<&DataType> for DescribedType
impl From<&DataType> for DescribedType
Source§impl From<DataType> for DescribedType
impl From<DataType> for DescribedType
Auto Trait Implementations§
impl !RefUnwindSafe for DataType
impl !UnwindSafe for DataType
impl Freeze for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.