Enum tc_value::Number [−][src]
A generic number.
Variants
Bool(Boolean)
Complex(Complex)
Float(Float)
Int(Int)
UInt(UInt)
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for Number
[src]
impl<'de> Deserialize<'de> for Number
[src]pub fn deserialize<D>(
deserializer: D
) -> Result<Number, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Number, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl FromStream for Number
[src]
impl FromStream for Number
[src]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,
[src]
_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
[src]
impl<'en> IntoStream<'en> for Number
[src]impl NumberInstance for Number
[src]
impl NumberInstance for Number
[src]type Abs = Number
type Exp = Number
type Class = NumberType
pub fn class(&self) -> NumberType
[src]
pub fn into_type(self, dtype: NumberType) -> Number
[src]
pub fn abs(self) -> Number
[src]
pub fn pow(self, exp: Number) -> Number
[src]
pub fn and(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
pub fn not(self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
pub fn or(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
pub fn xor(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
impl PartialOrd<Number> for Number
[src]
impl PartialOrd<Number> for Number
[src]impl Serialize for Number
[src]
impl Serialize for Number
[src]pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for Number
[src]
impl StructuralEq for Number
[src]impl TryCastFrom<Value> for Number
[src]
impl TryCastFrom<Value> for Number
[src]fn can_cast_from(value: &Value) -> bool
[src]
fn opt_cast_from(value: Value) -> 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,
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<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,