Enum tinychain::scalar::NumberType [−]
pub enum NumberType { Bool, Complex(ComplexType), Float(FloatType), Int(IntType), UInt(UIntType), Number, }
The type of a generic Number
.
Variants
Complex(ComplexType)
Float(FloatType)
Int(IntType)
UInt(UIntType)
Implementations
impl NumberType
impl NumberType
pub fn uint64() -> NumberType
Trait Implementations
impl Clone for NumberType
impl Clone for NumberType
pub fn clone(&self) -> NumberType
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for NumberType
impl Copy for NumberType
impl Default for NumberType
impl Default for NumberType
pub fn default() -> NumberType
impl<'de> Deserialize<'de> for NumberType
impl<'de> Deserialize<'de> for NumberType
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<NumberType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<NumberType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for NumberType
impl Eq for NumberType
impl From<BooleanType> for NumberType
impl From<BooleanType> for NumberType
pub fn from(_bt: BooleanType) -> NumberType
impl From<ComplexType> for NumberType
impl From<ComplexType> for NumberType
pub fn from(ct: ComplexType) -> NumberType
impl From<FloatType> for NumberType
impl From<FloatType> for NumberType
pub fn from(ft: FloatType) -> NumberType
impl From<IntType> for NumberType
impl From<IntType> for NumberType
pub fn from(it: IntType) -> NumberType
impl From<NumberType> for ValueType
[src]
impl From<NumberType> for ValueType
[src]pub fn from(nt: NumberType) -> ValueType
[src]
impl From<UIntType> for NumberType
impl From<UIntType> for NumberType
pub fn from(ut: UIntType) -> NumberType
impl Hash for NumberType
impl Hash for NumberType
impl NumberClass for NumberType
impl NumberClass for NumberType
impl Ord for NumberType
impl Ord for NumberType
impl PartialEq<NumberType> for NumberType
impl PartialEq<NumberType> for NumberType
pub fn eq(&self, other: &NumberType) -> bool
pub fn ne(&self, other: &NumberType) -> bool
impl PartialOrd<NumberType> for NumberType
impl PartialOrd<NumberType> for NumberType
impl Serialize for NumberType
impl Serialize for NumberType
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for NumberType
impl StructuralEq for NumberType
impl StructuralPartialEq for NumberType
impl StructuralPartialEq for NumberType
Auto Trait Implementations
impl RefUnwindSafe for NumberType
impl RefUnwindSafe for NumberType
impl Send for NumberType
impl Send for NumberType
impl Sync for NumberType
impl Sync for NumberType
impl Unpin for NumberType
impl Unpin for NumberType
impl UnwindSafe for NumberType
impl UnwindSafe for NumberType
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,