Enum tinychain::scalar::Number [−]
A generic number.
Variants
Bool(Boolean)
Complex(Complex)
Float(Float)
Int(Int)
UInt(UInt)
Implementations
Trait Implementations
impl AddAssign<Number> for Number
impl AddAssign<Number> for Number
pub fn add_assign(&mut self, other: Number)
impl Clone for Number
impl Clone for Number
pub fn clone(&self) -> Number
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for Number
impl<'de> Deserialize<'de> for Number
pub fn deserialize<D>(
deserializer: D
) -> Result<Number, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
deserializer: D
) -> Result<Number, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl DivAssign<Number> for Number
impl DivAssign<Number> for Number
pub fn div_assign(&mut self, other: Number)
impl FromStream for Number
impl FromStream for Number
type Context = ()
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
pub fn from_stream<'life0, 'async_trait, D>(
_context: (),
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Number, <D as Decoder>::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
D: Decoder + 'async_trait,
Number: 'async_trait,
_context: (),
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Number, <D as Decoder>::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
D: Decoder + 'async_trait,
Number: 'async_trait,
impl<'en> IntoStream<'en> for Number
impl<'en> IntoStream<'en> for Number
impl MulAssign<Number> for Number
impl MulAssign<Number> for Number
pub fn mul_assign(&mut self, other: Number)
impl NumberInstance for Number
impl NumberInstance for Number
type Abs = Number
type Exp = Number
type Class = NumberType
pub fn class(&self) -> NumberType
pub fn into_type(self, dtype: NumberType) -> Number
pub fn abs(self) -> Number
pub fn pow(self, exp: Number) -> Number
pub fn and(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
Boolean: CastFrom<Self>,
pub fn not(self) -> Self where
Boolean: CastFrom<Self>,
Boolean: CastFrom<Self>,
pub fn or(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
Boolean: CastFrom<Self>,
pub fn xor(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
Boolean: CastFrom<Self>,
impl PartialOrd<Number> for Number
impl PartialOrd<Number> for Number
impl Serialize for Number
impl Serialize for Number
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for Number
impl StructuralEq for Number
impl SubAssign<Number> for Number
impl SubAssign<Number> for Number
pub fn sub_assign(&mut self, other: Number)
impl TryCastFrom<Scalar> for Number
[src]
impl TryCastFrom<Scalar> for Number
[src]fn can_cast_from(scalar: &Scalar) -> bool
[src]
fn opt_cast_from(scalar: Scalar) -> Option<Self>
[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 TryCastFrom<Value> for Number
[src]
impl TryCastFrom<Value> for Number
[src]pub fn can_cast_from(value: &Value) -> bool
[src]
pub fn opt_cast_from(value: Value) -> Option<Number>
[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,
Auto Trait Implementations
impl RefUnwindSafe for Number
impl RefUnwindSafe for Number
impl UnwindSafe for Number
impl UnwindSafe for Number
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>,