Enum tc_value::Float [−][src]
A floating-point number.
Variants
F32(f32)
F64(f64)
Trait Implementations
impl<'en> IntoStream<'en> for Float
[src]
impl<'en> IntoStream<'en> for Float
[src]impl NumberInstance for Float
[src]
impl NumberInstance for Float
[src]type Abs = Float
type Exp = Float
type Class = FloatType
pub fn class(&self) -> FloatType
[src]
pub fn into_type(self, dtype: FloatType) -> Float
[src]
pub fn abs(self) -> Float
[src]
pub fn pow(self, exp: Float) -> Float
[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<Float> for Float
[src]
impl PartialOrd<Float> for Float
[src]impl Serialize for Float
[src]
impl Serialize for Float
[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,
Auto Trait Implementations
impl RefUnwindSafe for Float
impl RefUnwindSafe for Float
impl UnwindSafe for Float
impl UnwindSafe for Float
Blanket Implementations
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,